1 | initial version |
Turns out the step I was missing is that you must load the library using the r function r.library (i.e., r.library('SampleSizeMeans').
Therefore, step-by-step for loading and then using new r packages:
1) Use r.install_packages('PackageName') 2) Restart Sage 3) Use r.library('PackageName') to load the package prior to use.
It's worth noting that although it recommends that you restart Sage, it seemed to work immediately for the packages I tried so it may not be strictly necessary which is very handy!
2 | syntax stuff |
Turns out the step I was missing is that you must load the library using the r function r.library (i.e., r.library('SampleSizeMeans').
Therefore, step-by-step for loading and then using new r R packages:
1)
r.install_packages('PackageName')
Restart r.library('PackageName')
to load the package prior to use. It's worth noting that although it recommends that you restart Sage, it seemed to work immediately for the packages I tried so it may not be strictly necessary which is very handy!