Generates an R script with the examples from an Rd file.
Source:R/functions.R
generate_script_from_help.Rd
Arguments
- path_to_rd
String. Path to Rd file you wish to convert to a script
- rm_dont_run
Boolean. Should scripts with tag be ignored? Defaults to TRUE.} } \value{ Side-effect. No returned object, writes a script on disk. } \description{ Generates an R script with the examples from an Rd file. } \details{ This function is a wrapper around `tools::Rd2ex()` tht extracts the examples from Rd files included in the man/ folder of source packages and writes them to disk, next to the Rd files. } \examples{ get_archived_sources("AER") }