Skip to content

All needed to build a IsoplotR server. 搭建 IsoplotR 服务器所需内容

License

Notifications You must be signed in to change notification settings

chinageology/IsoplotRserver

Repository files navigation

IsoplotRserver

All needed to build a IsoplotR server. 搭建 IsoplotR 服务器所需内容

本文档中文原版

IsoplotRgui

This repo is the steps fo building a server of IsoplotR. IsoplotR is writen by Pieter Vermeesch.

For Docker User

docker run -t -i -p 3838:3838  chinageology/isoplotrserver
sh /etc/init.d/update
shiny-server

For example, the IP of your docker conatiner is 10.10.10.10, then you can visit 10.10.10.10:3838/ to use isoplotr.

For Ubuntu 18.04 server ONLY

Install R( http://r-project.org) fisrt. You need version 3.5.3.

Import the key in your terminal:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E084DAB9

Then edit your sources.list:

nano /etc/apt/sources.list

Add the R 3.5.3 source for Ubuntu 18.04:

# add bionic R3.5
deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/

Save the change and apt update:

sudo apt update

Install dependencies:

sudo apt install r-base r-base-dev
sudo apt install build-essential libcurl4-gnutls-dev libxml2-dev libssl-dev gdebi git

Install devtools(run the code below in terminal, not in R!):

sudo su - -c "R -e \"install.packages('devtools',repos='http://cran.rstudio.com/')\""

Install the Shiny Version 1.2.0, other versions don't support IsoplotRgui right now.

#sudo su - -c "R -e \"install.packages('shiny',repos='http://cran.rstudio.com/')\""
#sudo su - -c "R -e \"devtools::install_github('rstudio/shiny',force=TRUE)\""
#Ignore this line and the two lines above
sudo su - -c "R -e \"devtools::install_version('shiny',version = '1.2.0', repos = 'http://cran.rstudio.com/')\""

Install IsoplotR and IsoplotRgui:

sudo su - -c "R -e \"devtools::install_github('pvermees/IsoplotR',force=TRUE)\""
sudo su - -c "R -e \"devtools::install_github('pvermees/IsoplotRgui',force=TRUE)\""

Install Shiny Server

Install gdebi and wget.

sudo apt install gdebi-core wget

Then use wget to download rstudio server and shiny server deb, after which use gdebi to install them.

wget https://download2.rstudio.org/rstudio-server-1.0.136-amd64.deb
sudo gdebi rstudio-server-1.0.136-amd64.deb
wget https://download3.rstudio.org/ubuntu-14.04/x86_64/shiny-server-1.5.9.923-amd64.deb
sudo gdebi shiny-server-1.5.9.923-amd64.deb

Test your server

Clone this repo to get the files for the IsoplotR server:

git clone https://github.com/chinageology/IsoplotRserver

Get into the cloned folder IsoplotRserver, copy the who folder IsoplotR to /srv/shiny-server/:

cd IsoplotRserver
cp -R IsoplotR /srv/shiny-server/

Then visit http://yourserverip:3838/IsoplotR/

Update A Installed Server To Latest

Update IsoplotR to the latest on github:

sudo su - -c "R -e \"devtools::install_github('pvermees/IsoplotR',force=TRUE)\""

Git clone the latest version of IsoplotRgui, and then copy all inside IsoplotRgui/inst/shiny-examples/myapp/ to your server location, here as /srv/shiny-server/IsoplotR/:

cd /tmp
git clone https://github.com/pvermees/IsoplotRgui
cd IsoplotRgui/inst/shiny-examples/myapp/
sudo cp -R * /srv/shiny-server/IsoplotR/

Community Servers

http://isoplotr.london-geochron.com

Further information

See http://isoplotr.london-geochron.com

Author

Pieter Vermeesch

This repo is built by CycleUser

License

This project is licensed under the GPL-3 License

About

All needed to build a IsoplotR server. 搭建 IsoplotR 服务器所需内容

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published