You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@yihui it is safe to add formatR to import, but a cleaner solution would be to set by default tidy option to FALSE. But it has been like that since the start (ea56b52 and 01a4f0a)
Why set to TRUE if FALSE in skeleton ?
Which solution do you prefer ?
The text was updated successfully, but these errors were encountered:
In fact even with the default template, if formatR is not installed, we get the warning
Warning messages:
1: In block_exec(params) : Failed to tidy R code in chunk 'setup'. Reason:
Error in loadNamespace(name) : there is no package called 'formatR'
That is unfortunate. It will be fixed with one of the two solution above.
This old thread has been automatically locked. If you think you have found something related to this, please open a new issue by following the issue guide (https://yihui.org/issue/), and link to this old issue if necessary.
We have
tidy = TRUE
as option intufte/R/handout.R
Line 67 in 1e6ffd3
This requires the
formatR
package which is not in import.This is not a issue we've seen often because skeleton sets it to FALSE
tufte/inst/rmarkdown/templates/tufte_html/skeleton/skeleton.Rmd
Line 22 in 4175791
I encountered this as a warning in rmarkdown tests
https://github.com/rstudio/rmarkdown/pull/1958/checks?check_run_id=1442968802#step:14:34
and it took me time to understand it came from here.
@yihui it is safe to add
formatR
to import, but a cleaner solution would be to set by default tidy option to FALSE. But it has been like that since the start (ea56b52 and 01a4f0a)Why set to TRUE if FALSE in skeleton ?
Which solution do you prefer ?
The text was updated successfully, but these errors were encountered: