Re: [R] Source into a specified environment

2017-01-09 Thread jim holtman
?sys.source Here is an example of the way I use it: # read my functions into a environment .my.env.jph <- new.env() .sys.source('~/C_Drive/perf/bin/perfmon.r', envir=.my.env.jph) attach(.my.env.jph) Jim Holtman Data Munger Guru What is the problem that you are trying to solve? Tell me what

Re: [R] Source into a specified environment

2017-01-09 Thread Ivan Calandra
Hi Georg, Not sure how it would work in your case, but the 'local' argument to source() is not only TRUE or FALSE; you can also specify an environment. HTH, Ivan -- Ivan Calandra, PhD MONREPOS Archaeological Research Centre and Museum for Human Behavioural Evolution Schloss Monrepos 56567

[R] Source into a specified environment

2017-01-09 Thread G . Maubach
Hi All, I wish everyone a happy new year. I have the following code: -- cut -- modules <- c("t_calculate_RFM_model.R", "t_count_na.R", "t_export_table_2_xls.R", "t_find_duplicates_in_variable.R", "t_find_originals_and_duplicates.R", "t_frequencies.R",