Sys.putenv               package:base               R Documentation

_S_e_t _E_n_v_i_r_o_n_m_e_n_t _V_a_r_i_a_b_l_e_s

_D_e_s_c_r_i_p_t_i_o_n:

     'putenv' sets environment variables (for other processes called
     from within R or future calls to 'Sys.getenv' from this R
     process).

_U_s_a_g_e:

     Sys.putenv(...)

_A_r_g_u_m_e_n_t_s:

     ...: arguments in 'name=value' form, with 'value' coercible to a
          character string.

_D_e_t_a_i_l_s:

     Non-standard R names must be quoted: see the Examples section.

_V_a_l_u_e:

     A logical vector of the same length as 'x', with elements being
     true if setting the corresponding variable succeeded.

_N_o_t_e:

     Not all systems need support 'Sys.putenv' (although all known
     current platforms do).

_S_e_e _A_l_s_o:

     'Sys.getenv', Startup for ways to set environment variables for
     the R session.

     'setwd' for the working directory.

_E_x_a_m_p_l_e_s:

     print(Sys.putenv(R_TEST="testit", "A+C"=123))
     Sys.getenv("R_TEST")

