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'.

_S_e_e _A_l_s_o:

     'Sys.getenv', 'setwd' for the working directory.

_E_x_a_m_p_l_e_s:

     print(Sys.putenv("R_TEST"="testit", ABC=123))
     Sys.getenv("R_TEST")

