Is there a straightforward way to turn the functions of a .RData file into a normal code file (.R)?
Check out ?dump
. For example:
newEnv <- new.env()
load("myFunctions.Rdata", newEnv)
dump(c(lsf.str(newEnv)), file="normalCodeFile.R", envir=newEnv)
You may also be interested in ?prompt
(which creates documentation files for objects) and / or ?package.skeleton
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With