Using usethis::use_package() in the Console while inside the R package project, for each of the packages you need to use, will add these packages as dependencies to your DESCRIPTION file. This file is one of three needed files in order for R to be able to install a folder as a package. (A package is literally a set of folders that follow a specific convention. In this case, the folder MUST contain a DESCRIPTION file, a NAMESPACE file that is created automatically from devtools::document(), and the R/ folder with the R files that contain the functions inside.)
Using
usethis::use_package()
in the Console while inside the R package project, for each of the packages you need to use, will add these packages as dependencies to yourDESCRIPTION
file. This file is one of three needed files in order for R to be able to install a folder as a package. (A package is literally a set of folders that follow a specific convention. In this case, the folder MUST contain aDESCRIPTION
file, aNAMESPACE
file that is created automatically fromdevtools::document()
, and theR/
folder with the R files that contain the functions inside.)