Hey list, i am about to package a fairly large project. Unfortunately, the code quality is suboptimal - it uses a lot of source() to jump between source files:
data <- ... # Do something with data source("R/process_data.r", local=T) # Do something with the results source("R/process_results.r", local=T) # Do something like this many times ... Whats the best way to package something like this? My idea was to write a slim wrapper: something.run <- function(data) { source("R/run.r") } The problem now is that source() can't find the files, when executed inside the package. What is best practice here (apart from a rewrite)? Cheers, ushi _______________________________________________ Bioc-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/bioc-devel