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 |
---|
|
install.packages("devtools") |
or,
from
the
tab
bar:
Tools
–
Install
packages
()
Then load it:
Code Block |
---|
|
library(devtools) |
2. Install the ONC R Client Library using devtools’ “install_github funtion” in the R command line:
Code Block |
---|
|
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 |
---|
|
library(onc.api) |
It will be ready for use.