Report an Issue / Request a Feature
I'm submitting a (Check one with "x") :
Issue Severity Classification -
(Check one with "x") :
Expected Behavior
An easy console driven method to quickly add libraries to global.dcf, which would utilize autocomplete for the package names.
Current Behavior
Today, as we work on the projects, adding a library to the global.dcf file is a manual process. When many .R files are open, and the open folder is different, it's a cumbersome workflow to open global.dcf and add the library name without any autocomplete option. (Results in spelling mistakes like I did today - rtsne instead of Rtsne.
Possible Solution
Something along the lines of the devtools::use_package() which can be called from command line as well as will autocomplete package names while typing <read about it>
Example usage: from the R console, call ProjectTemplate::add_package(lattice) changes the global.dcf from this:
...
load_libraries: TRUE
libraries: reshape2, plyr, tidyverse, stringr, lubridate
as_factors: TRUE
...
to this:
...
load_libraries: TRUE
libraries: reshape2, plyr, tidyverse, stringr, lubridate, lattice
as_factors: TRUE
...
If the package already exists in the list, then the user can be notified and no actions taken.
Report an Issue / Request a Feature
I'm submitting a (Check one with "x") :
Issue Severity Classification -
(Check one with "x") :
Expected Behavior
An easy console driven method to quickly add libraries to
global.dcf, which would utilize autocomplete for the package names.Current Behavior
Today, as we work on the projects, adding a library to the
global.dcffile is a manual process. When many.Rfiles are open, and the open folder is different, it's a cumbersome workflow to openglobal.dcfand add the library name without any autocomplete option. (Results in spelling mistakes like I did today -rtsneinstead ofRtsne.Possible Solution
Something along the lines of the
devtools::use_package()which can be called from command line as well as will autocomplete package names while typing <read about it>Example usage: from the R console, call
ProjectTemplate::add_package(lattice)changes theglobal.dcffrom this:to this:
If the package already exists in the list, then the user can be notified and no actions taken.