Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
I ICOADS R HOSTACE
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 7
    • Issues 7
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • brivas
  • ICOADS R HOSTACE
  • Wiki
  • How to install

How to install · Changes

Page history
improved caps authored May 15, 2020 by bearecinos's avatar bearecinos
Hide whitespace changes
Inline Side-by-side
Showing with 0 additions and 0 deletions
+0 -0
  • How-to-install.md How-to-install.md +0 -0
  • No files found.
How-to-install.md 0 → 100644
View page @ aec3dfa9
The scripts in this repository consist on a pure [R](https://www.r-project.org/) package,
but it has several dependencies which can be install by the following
instructions.
All the required packages should work on any platform and on linux based systems.
The code has been tested in R v3.5.1 and in R v3.6.3
Dependencies
------------
Here is a list of *all* dependencies to run the code. The code has been tested
with the most recent version of the following packages:
**Developing tools:**
- devtools
- pryr
- config
**Data processing tools**
- stringdist
- geosphere
- jsonlite
- lubridate
- igraph
**External R software**
- imma
Install dependencies with conda (all platforms)
----------------------------------
This is the recommended way to install all the dependencies. So when the code is ran,
either in a laptop or cluster you don't have to re-install the R packages for a new session.
**Prerequisites**
You should have a recent version of the [conda](https://docs.conda.io/en/latest/)
package manager.
You can get [conda](https://docs.conda.io/en/latest/) by installing
[miniconda](https://docs.conda.io/en/latest/miniconda.html), which is what we recommend
here to keep track of your R environment.
See the following blog post:
[using the R language with Anaconda,](https://docs.anaconda.com/anaconda/user-guide/tasks/using-r-language/)
for more information.
**Conda environment**
Once conda is installed on your system you can easily create a fix R environment
to use in every run by:
~~~
conda create -n r_env r-essentials r-base
~~~
Then activate it:
~~~
conda activate r_env
~~~
To install the code dependencies you must have activated your environment. You
will know is activated once you see the name of the environment (e.g r_env)
in () at the beginning of your bash alias:
~~~
(r_env) [brecinos@jasmin-sci2 ~]$
~~~
To install dependencies simply do:
~~~
conda install -c conda-forge r-"package_name"
~~~
For example:
~~~
conda install -c conda-forge r-devtools
~~~
**IMMA toolbox**
The IMMA data format is used for the disemmination of the icoads marine data.
The package **imma** written also in R.
Provides function to read those files and to apply quality control to the data.
Must be install manually by getting the .tar.gz file and running the following
script once your conda environment is activated:
~~~
conda install ./imma_0.0.1.tar.gz
~~~
**Install the repository itself**
For this to work you'll need to have the [git](https://git-scm.com/) software installed on your
system. Then, clone the latest repository version:
~~~
git clone git@git.noc.ac.uk:brecinosrivas/icoads-r-hostace.git
~~~
Clone repository
  • API Reference
  • Examples
  • Home
  • How to install
  • Introduction
  • JASMIN tips
  • Releases
  • Workflow
  • Workflow
    • Data selection
    • Duplicate indentification
    • Matching criteria
    • Processing of IDs
    • Quality control