Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Alternative 2: Installing from GitHub

1. The ONC R Client Library can also be installed from the ONC Github repository.

To access some useful functions install the devtools package from the R command line:

Code Block
languagetext
themeEmacs
install.packages("devtools")

or, from the tab bar: Tools – Install packages ()

Then load it:

Code Block
languagetext
themeEmacs
library(devtools)


2. Install the ONC R Client Library using devtools’ “install_github funtion” in the R command line:

Code Block
languagetext
themeEmacs
install_github("OceanNetworksCanada/api-r-client")
  • Selecting “Option: 1 (All)” will download missing dependencies such as “tictoc”, “lubridate” etc. or update existing dependencies.
  • The installation process will take several minutes to complete depending on how many dependencies are missing or need to be updated.
  • After the installation process completes (command line returns: “* DONE (onc.api)”) you can load the ONC R Client Library via the command:
Code Block
languagetext
themeEmacs
library(onc.api)

It will be ready for use.

Troubleshooting

After installing the R package, make sure it appears in the RStudio packages pane.

...