in_dir
: working directorywith_collate
: collation orderwith_envvar
: environmental variableswith_libpaths
: library paths, replacing current libpathswith_lib
: library paths, prepending to current libpathswith_locale
: any locale settingwith_options
: optionswith_path
: PATH environment variablewith_par
: graphics parameterswith_envvar(new, code, action = "replace")with_locale(new, code)
with_collate(new, code)
in_dir(new, code)
with_libpaths(new, code)
with_lib(new, code)
with_options(new, code)
with_par(new, code)
with_path(new, code, add = TRUE)
with_makevars(new, code, path = file.path("~", ".R", "Makevars"))
with_envvar
only): should new values
"replace"
, "suffix"
, "prefix"
existing environmental
variables with the same name.with_path
only. If FALSE
all existing
paths are overwritten, which don't you usually want.NA
is used as a value with with_envvar
those
environment variables will be unset. If there are any duplicated variable
names only the last one is used.If no existing makevars file exists or the fields in new
do
not exist in the existing Makevars
file then the fields are added to
the new file. Existing fields which are not included in new
are
appended unchanged. Fields which exist in Makevars
and in new
are modified to use the value in new
.