If you met problem in the one line script, you can run these lines one by one and locate the specific problem.
You may need to restart R session and run them again when met error in package installation.
# restart R session first
remove.packages("ctmm")
if (!require("devtools")) install.packages("devtools")
devtools::install_github("rstudio/shiny")
devtools::install_github("ctmm-initiative/ctmm")
# stable version
shiny::runGitHub('ctmm-initiative/ctmm-webapp', ref = "v0.0.6")
# or latest version
shiny::runGitHub('ctmm-initiative/ctmm-webapp')
The method above always download the app before run. You can also download the app and run without Internet.
With R and dependency packages installed:
Download the stable version from releases page, currently v0.0.6
, or the latest development version.
Unzip the zip to a folder, then run it with
r
if (!require("devtools"))
install.packages("devtools")
devtools::install_github("rstudio/shiny")
devtools::install_github("ctmm-initiative/ctmm")
devtools::install_github("r-lib/crayon")
shiny::runApp("<absolute path to your app folder>")
r-base-dev
too.devtools
need libcurl
, ssl
if it's not already installed in your system. You can watch error messages to check what is required. I installed them in Linux Mint 18 with
sudo apt-get install libcurl4-openssl-dev
sudo apt-get install libssl-dev
ctmm
need rgdal
, which need another two libraries in linux:
sudo apt-get update && sudo apt-get install libgdal-dev libproj-dev
There is a known bug caused by data.table
, openMP
and mcapply
in R 3.4. So it's possible to see this error when fitting models in parallel under Mac/Linux:
r
Assertion failure at kmp_runtime.cpp(6480): __kmp_thread_pool == __null.
OMP: Error #13: Assertion failure at kmp_runtime.cpp(6480).
The error is pretty random and hard to reproduce, but usually you can restart R session and it should dissappear.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.