# Revision history [back]

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 kcrisman 11887 ●36 ●122 ●237

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)

1. Use r.install_packages('PackageName') 2) r.install_packages('PackageName')
2. Restart Sage 3) Sage
3. Use r.library('PackageName') 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!