Ask Your Question

Revision history [back]

click to hide/show revision 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!

click to hide/show revision 2
syntax stuff

updated 2012-07-25 17:13:06 -0600

kcrisman gravatar image

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!