Skip to contents
  • g6tr_use_packages() installs provided packages if not installed alread, loads them and adds to 'Import' field of the project DESCRIPTION file.

  • g6tr_get_packages() retrieves package list from DESCRIPTION.

  • g6tr_edit_packages() is just a shorthand for opening the DESCRIPTION file in case you messed something up and want to manually edit it.

Usage

g6tr_use_packages(..., project = ".")

g6tr_get_packages(project = ".")

g6tr_edit_packages(project = ".")

Arguments

...

Package names.

project

Path to the project. Default is "." (current working directory) most likely you will not need to change this.

Examples

if (FALSE) { # \dontrun{
g6tr_use_packages("g6tr.cjt", "dplyr")
g6tr_get_packages()
g6tr_renv_snapshot()
} # }