[Bioc-devel] Packaging a medium/large project
ushi
ushi+bioconductor at honkgong.info
Wed Apr 16 13:57:06 CEST 2014
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
More information about the Bioc-devel
mailing list