Create a folder for the package

  1. Create a new package folder outside of any RStudio Project, R package, Git repo, or, OneDrive/GoogleDrive sync folder.
usethis::create_package("../regexcite")

  • Files created (options to view ‘dotfiles’)
    • .Rbuildignore: Files ignored when the package is built from source.
    • .Rproj.user: A directory used by RStudio
    • .gitignore: A file to ignore files for version control.
    • DESCRIPTION: Provides metadata about your package.
    • NAMESPACE: Declares functions to export and external functions to import from other packages.
    • R: Will hold all of the .R files with function definitions.
    • projectName.Rproj: File that makes this directory a project with relative paths.