Skip to contents

Downloads doc files from an archived source package, and generates an R script from it.

Usage

get_example(name, version, url, clean = TRUE)

Arguments

name

String. Name of the packages.

version

String. Version of the package to download.

url

String. Link to archived package tar file.

clean

Boolean, defaults to TRUE. If TRUE, only keeps man/ folder containing the documentaton. If FALSE, keeps entire package.

Value

Side-effect. No returned object, writes a Rd files to disk.

Details

This function returns a data frame with a column `name` giving the name of a package, `version` giving its version, `url` the download url `last_modified` the date on which the package was last modified on CRAN and `size`, the size of the package