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
It's possible to customise what happens when you click the "Knit" button with a knit field in the yaml metadata: https://bookdown.org/yihui/rmarkdown-cookbook/custom-knit.html. For README.Rmd and vignettes, we should set this to a function that uses with_temp_install() so you don't need to manually install the package in order to preview vignettes.
The main challenge is that the knit function is run in a child session, so we'll need to think about how to convey what the current package is and where to look for the temporary library. Maybe load_all() could set an env var? (That would at least be consistent with needing to do a load_all() before you can preview dev docs)
It's possible to customise what happens when you click the "Knit" button with a
knit
field in the yaml metadata: https://bookdown.org/yihui/rmarkdown-cookbook/custom-knit.html. For README.Rmd and vignettes, we should set this to a function that useswith_temp_install()
so you don't need to manually install the package in order to preview vignettes.(In order for RStudio preview to work, the function needs to output
Output created: {path}
, e.g. https://github.com/ramnathv/slidify/blob/master/R/slidify.R#L89-L101)The text was updated successfully, but these errors were encountered: