Skip to content

Commit

Permalink
Merge pull request farrellja#59 from maximilianh/patch-1
Browse files Browse the repository at this point in the history
Update INSTALL.md
  • Loading branch information
farrellja authored Jun 11, 2020
2 parents d465abc + efe6733 commit 0fed8b8
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,22 @@ Following installation of R, Rstudio can be obtained and installed from [https:/

### 3. Install required R packages and URD

We wrote a script that will attempt to install all requirements for URD and then URD itself. Start RStudio and then run the installation script from the console:
We wrote a script that will attempt to install all requirements for URD and then URD itself. It has been tested on R 3.5 and R 3.6. Start RStudio and then run the installation script from the console:

```source("https://raw.githubusercontent.com/farrellja/URD/master/URD-Install.R")```

## Troubleshooting

### A separate conda environment

If you have trouble installing URD because of version conflicts with your currently installed packages, you can create a separate conda environment for URD:

```
conda create urd base-r==3.5.1 udunits2 -c conda-forge
conda activate urd
Rscript -e 'source("https://raw.githubusercontent.com/farrellja/URD/master/URD-Install.R")'
```

### udunits

URD's dependencies require the installation of the **udunits2** package, which depends on the udunits2 library. This is part of the Windows and Mac OS X operating systems, but often requires manual installation on Linux distributions:
Expand All @@ -30,6 +40,11 @@ URD's dependencies require the installation of the **udunits2** package, which d
sudo apt-get install libudunits2-dev
```

Or if using conda:
```
conda install udunits2
```

### DLL error

R has limit on the number of DLLs that can be loaded by linked packages. If you receive a **maximal number of DLLs reached** error during installation, then you can increase the number of simultaneously allowed DLLs from 100 to 200 by modifying the *.Renviron* file.
Expand Down

0 comments on commit 0fed8b8

Please sign in to comment.