Closed nutterb closed 7 years ago
I received the following e-mail from a user:
I'm using the latest version of Pixiedust and R. I'm creating a beamer presentation but I get the following message Error in print.dust(x): 'beamer' is not a valid print method
I'm using the latest version of Pixiedust and R. I'm creating a beamer presentation but I get the following message
Error in print.dust(x): 'beamer' is not a valid print method
When I tried using something like the code below, I got the same error.
library(pixiedust) options(pixiedust_print_method = "latex") dust(mtcars)
The reason this error is generated is that knitr::opts_knit$get("rmarkdown.pandoc.to") (https://github.com/nutterb/pixiedust/blob/master/R/dust.R#L255) returns "beamer". Since that is not NULL, the function never changes to the option value.
knitr::opts_knit$get("rmarkdown.pandoc.to")
"beamer"
NULL
What should happen instead is that pixiedust should
pixiedust
I think the resolution would be
zzz.R
I received the following e-mail from a user:
When I tried using something like the code below, I got the same error.
The reason this error is generated is that
knitr::opts_knit$get("rmarkdown.pandoc.to")
(https://github.com/nutterb/pixiedust/blob/master/R/dust.R#L255) returns"beamer"
. Since that is notNULL
, the function never changes to the option value.What should happen instead is that
pixiedust
shouldknitr::opts_knit$get("rmarkdown.pandoc.to")
NULL
, return "console"I think the resolution would be
zzz.R