emitanaka / edibble

An R-package that encapsulate elements of experimental design for better planning, management, and workflow
https://edibble.emitanaka.org
Other
215 stars 14 forks source link

error in Rmd notebook #33

Closed emitanaka closed 2 years ago

emitanaka commented 3 years ago
spd <- start_design("split-plot") %>% 
  set_units(wholeplot = 4,
            subplot = nested_in(wholeplot, 4)) %>% 
  set_trts(irr = c("rain-fed", "irrigated"),
           var  = c("V1", "V2", "V3", "V4")) %>% 
  allocate_trts(irr ~ wholeplot,
                var ~ subplot) %>% 
  randomise_trts() %>% 
  serve_table()
spd

Works fine in console but in Rmd chunk run, it gives an error

Error: Can't combine `..1` <unit(4)> and `..2` <character>.
Run `rlang::last_error()` to see where the error occurred.
emitanaka commented 2 years ago

Works okay in the major overhaul