I\'m using R for genetic programming with the RGP package. The environment creates functions that solve problems. I want to save these functions in their own .R source files. I
You can pass save the names of objects to be saved via the list argument
save
list
save(list="bf_str", file="MyBestFunction.R")
Alternatively, you could use dput
dput(bf_str, file='MyFun.R')
and dget to retrieve
dget
bf_str <- dget("MyFun.R")