8.2 Installed filled

Everything in inst/ is copied into the top-level directory of the installed package.

Warnings: no subdirectory with a name already in use at the top-level (ie: inst/data)

Remember (In dev: inst/bob -> for users: /bob): to avoid trouble you can use devtools::load_all() or fs::path_package().

8.2.1 Package citation:

citation() is fetching the CITATION file.

  • without argument -> how to cite base R

  • with a package name (a string: “tidyverse”) -> how to cite the package

If you use usethis::use_citation() it will, if needed, create a inst/ and CITATION template.