CRAN version (cautious users)
The stable version of oce is provided on the R archives. It is installed from within R with
Pre-compiled development version
oce is compiled for MSWindows and for OS X.
The results are stored at a Dropbox
site. Visit that site
and the appropriate subdirectory (
and download both
ocedata. Then install as R
normally installs packages, e.g. on an OS X machine, type the following in a
terminal (console) window:
R CMD install oce_0.9-22.tgz R CMD install ocedata_0.1.4.tgz
Note that if your system uncompresses the files, you will have to change the
.tar to make the above-stated commands work.
Users of the RStudio IDE can install the package from the downloaded package files by using the menu item Install Packages under the Tools menu, and selecting Install from: Package archive file. A similar approach can be used with the R.app GUI under the Packages & Data menu.
Source-code development version
Users who are set up to build packages (which requires a C compiler, etc; see note 1) may stay at the cutting edge by installing a development version. This may be done in several ways, of which the third is the best for most users.
R CMD build oce R CMD install oce_0.9-19.tar.gz # adjust version as needed R CMD build ocedata R CMD install ocedata_0.1.4.gz # adjust version as needed
Clone the sources with Git
git clone https://email@example.com/dankelley/oce.git git clone https://firstname.lastname@example.org/dankelley/ocedata.git
and then build as described above.
library(devtools) install_github("dankelley/oce", ref="develop") install_github("dankelley/ocedata", ref="master")
The first method is included here for convenience of users who do not have git on their computers. The second method is the one chosen by most users who have programming experience. The third method is recommended for most users who simply want to build an up-to-date version of oce.
Note. Getting ready to compile (by installing a
C compiler, etc.)
is easy on linux, although the method depends on the system. On MSWindows,
install Rtools from CRAN.
On OSX, it can be fairly complicated, as explained in a