set_renv_shared_cache | R Documentation |
Helper function to create or append the global library cache location for renv. Several checks will be performed, which, if prompt
is
set to TRUE
will determine the behavior. First, a search will be performed for an existing .Renviron file. Second, if the environment variable
named 'RENV_PATHS_CACHE' is set, it will ask if any existing key-value pair by this name in an .Renviron file should be removed prior to writing a new entry.
This function can only be used in interactive mode.
set_renv_shared_cache(
cache_loc,
work_loc = getwd(),
env_var = "RENV_PATHS_CACHE",
prompt = TRUE
)
cache_loc |
Location of a (ideally global) cache location for renv. |
work_loc |
Working environment in which to search, create/append the contents (default: |
env_var |
The key name in the .Renviron file, as determined in renv, (default |
prompt |
Boolean, to determine if process checking occurs or to accept overwriting defaults. |
loc <- 'loc/to/my/global/cache' # Should be known in advance for the team sharing the cache...
set_renv_shared_cache(cache_loc = loc)
set_renv_shared_cache(loc, prompt = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.