Closed emitanaka closed 2 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.
Works okay in the major overhaul
Works fine in console but in Rmd chunk run, it gives an error