sourceDirectory           package:R.utils           R Documentation

_S_o_u_r_c_e_s _f_i_l_e_s _r_e_c_u_r_s_i_v_e_l_y _t_o _e_i_t_h_e_r _l_o_c_a_l _o_r _g_l_o_b_a_l _e_n_v_i_r_o_n_m_e_n_t

_D_e_s_c_r_i_p_t_i_o_n:

     Sources files recursively to either local or global environment.

_U_s_a_g_e:

     ## Default S3 method:
     sourceDirectory(path, pattern=".*[.]R([.](lnk|LNK))*$", recursive=TRUE, envir=parent.frame(), onError=c("error", "warning", "skip"), verbose=FALSE, ...)

_A_r_g_u_m_e_n_t_s:

    path: A path to a directory to be sourced.

 pattern: A regular expression file name pattern to identify source
          code files.

recursive: If 'TRUE', subdirectories are recursively sourced too,
          otherwise not.

   envir: An 'environment' in which the code should be evaluated.

 onError: If an error occures, the error may stop the job, give a
          warning, or silently be skipped.

 verbose: A 'logical' or a 'Verbose' object.

     ...: Not used.

_V_a_l_u_e:

     Returns a 'vector' of the full pathnames of the files sourced.

_H_o_o_k_s:

     This method does not provide hooks, but the internally used
     'sourceTo'() does.

_A_u_t_h_o_r(_s):

     Henrik Bengtsson (<URL: http://www.braju.com/R/>)

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

     'sourceTo'() and compare to 'source'().

