You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a function startup::compile() to compile all Rprofile script files into a single Rprofile file where the directory and file name filters are translated into if statements. For example, the content of file ~/.Rprofile.d/os=windows/work,interactive=TRUE.R should be injected with the following if statement/wrapper:
UPDATE 2018-04-29: the value of the conditional variables should be done upfront/at the beginning only - the filtering a files is only done ones and a processed file cannot change affect the filtering.
The text was updated successfully, but these errors were encountered:
Add a function
startup::compile()
to compile all Rprofile script files into a single Rprofile file where the directory and file name filters are translated into if statements. For example, the content of file~/.Rprofile.d/os=windows/work,interactive=TRUE.R
should be injected with the following if statement/wrapper:There could also be an option to make the compiled script not dependent on the
startup
package, i.e. by - something like:Other conditions may be a bit more convoluted and requires complex R code, but the gist is the same.
Compiling into a single file may make the overall processing time to go down because fewer files are accessed. It may also help troubleshooting.
See also HenrikBengtsson/bash-startup#5
UPDATE 2018-04-29: the value of the conditional variables should be done upfront/at the beginning only - the filtering a files is only done ones and a processed file cannot change affect the filtering.
The text was updated successfully, but these errors were encountered: