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
In this minimalist repexpkgdown R package, there is one function, hello(), and the example of its documentation creates a file on disk. A consequence of this is that, when using the pkgdown package to generate a website for the repexpkgdown package, the file created by the example of the hello()function is created in the docs/reference folder, which we would like to avoid. Is there a way to automatically avoid this?
Thanks for help.
The text was updated successfully, but these errors were encountered:
choisy
changed the title
Cleaning the docs/reference folder from the files that my be generated by the examples of the docu
Cleaning the docs/reference folder from the files that may be generated by the examples of the documentation
Jul 30, 2019
Yes, we thought of that too, but \dontrun is not a satisfying solution for us as we would like the examples to be run when we look at the documentation of the functions. What we are doing now is that we have a wrapper around the pkgdown::build_site() function that cleans the docs/reference folder after the site is built. We were thinking that adding such a cleaning functionality directly to the pkgdown::build_site() function would be something you may consider.
In this minimalist repexpkgdown R package, there is one function,
hello()
, and the example of its documentation creates a file on disk. A consequence of this is that, when using thepkgdown
package to generate a website for therepexpkgdown
package, the file created by the example of thehello()
function is created in thedocs/reference
folder, which we would like to avoid. Is there a way to automatically avoid this?Thanks for help.
The text was updated successfully, but these errors were encountered: