Reusing R code¶
When you write a lot of R code in a project, or accross project, you will often want to make reusable parts of code.
DSS provides several mechanisms for reusing R code:
- Packaging your code as functions or modules, and making them available in all projects
- Packaging your code as a reusable plugin, and making it available for coder and non-coder users alike
Although not recommended, if you have shell access to the DSS machine, you can modify the library folder directly in
The source mechanism is practical but does not enforce namespacing. To get namespacing, you need to build a complete R package, compile it, and install it (possibly in the code environment) using
install.packages. This generally requires shell access on the machine running DSS.