documentation:r_setup
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| documentation:r_setup [2015/04/07 01:49] – schuemie | documentation:r_setup [2016/07/06 21:37] (current) – vojtechhuser | ||
|---|---|---|---|
| Line 7: | Line 7: | ||
| Here are instructions for when you just want to run the OHDSI tools. | Here are instructions for when you just want to run the OHDSI tools. | ||
| - | ** Windows | + | ==== Windows |
| - Install R, which you can download from [[http:// | - Install R, which you can download from [[http:// | ||
| Line 16: | Line 17: | ||
| * R_LIBRARY with the location of your R library (e.g. // | * R_LIBRARY with the location of your R library (e.g. // | ||
| - We found it is best to restart your computer for the environmental variables to take effect. | - We found it is best to restart your computer for the environmental variables to take effect. | ||
| - | - Several OHDSI packages require [[http:// | + | - Several OHDSI packages require [[http:// |
| + | |||
| + | - additional user notes (2016-07-06, | ||
| + | |||
| + | ==== Ubuntu ==== | ||
| + | |||
| + | === Install Java === | ||
| + | |||
| + | First, we completely remove openjdk if present: | ||
| + | < | ||
| + | sudo apt-get purge openjdk-\* | ||
| + | </ | ||
| + | Next we install Oracle Java: | ||
| + | < | ||
| + | sudo apt-get install python-software-properties | ||
| + | sudo add-apt-repository ppa: | ||
| + | sudo apt-get update | ||
| + | sudo apt-get install oracle-java8-installer | ||
| + | </ | ||
| + | |||
| + | === Install Git === | ||
| + | |||
| + | < | ||
| + | sudo apt-get install git-all | ||
| + | </ | ||
| + | |||
| + | === Install R === | ||
| + | |||
| + | < | ||
| + | sudo sh -c 'echo "deb http:// | ||
| + | sudo gpg --keyserver keyserver.ubuntu.com --recv-key E084DAB9 | ||
| + | sudo gpg -a --export E084DAB9 | sudo apt-key add - | ||
| + | sudo apt-get update | ||
| + | sudo apt-get install r-base | ||
| + | sudo R CMD javareconf | ||
| + | </ | ||
| + | |||
| + | If you're having trouble finding libjvm.so in R: | ||
| + | < | ||
| + | sudo updatedb | ||
| + | locate libjvm.so | ||
| + | sudo ln -s / | ||
| + | </ | ||
| + | (adapt last line to correct location for your JRE) | ||
| + | |||
| + | === Install required Linux packages === | ||
| + | |||
| + | These libraries are required by some packages in R: | ||
| + | < | ||
| + | sudo apt-get install libcurl4-openssl-dev | ||
| + | sudo apt-get install libssl-dev | ||
| + | sudo apt-get install libxml2-dev | ||
| + | sudo apt-get install liblzma-dev | ||
| + | </ | ||
| ===== Tool developers ===== | ===== Tool developers ===== | ||
documentation/r_setup.1428371397.txt.gz · Last modified: by schuemie
