include("~/R/my-functions.R")
include("~/R/more-of-my-functions.R")
ls() # The functions defined in these files will not show up here
# ... but here
search()
ls("source:~/R/my-functions.R")
ls("source:~/R/more-of-my-functions.R")
z <- one.of.my.functions(100) # ... and are available.
uninclude("~/R/my-functions.R")
detach.sources()
Run the code above in your browser using DataLab