For those not interested in customized installation on Windows, we recommend you download a Windows installer for your platform from the following link: https://github.com/nlmixrdevelopment/nlmixr/releases/tag/v0.9.0-2
To replicate the environment that was used in Windows for nlmixr
development, you will need administrator rights, and you should perform the following steps:
C:\R\R-3.4.1
, but
you can also use the default location (C:\Program Files\R\R-3.4.1
) as well, if really needed.c:\Rtools
RxODE
, a required component of nlmixr
, checks and sets up the path based on the following:
a. Rtools
is in the path (fastest and recommended option)
b. Rtools
was installed with information saved to the Windows registry, and RxODE
can
find the installation.
c. Rtools
is on a hard drive installed in either Rtools
or RBuildTools
PATH
environment variable, or RxODE
and nlmixr
will not work (this should be done automatically during installation).nlmixr
. When installing, use the Python 3.6 version. During the installation, Anaconda provides the option of adding itself to the PATH
environment variable, but advises against it; please do this anyway (despite the red warning).pip
. Note that if you approach us for support, we are going to recommend that you use Anaconda.PATH
environment variable, or RxODE
and nlmixr
will not work, no matter what Anaconda might say.devtools
.
install.packages("devtools")
.devtools
using library(devtools)
.RxODE
.
RxODE
is in the process of being
uploaded to CRAN. nlmixr
needs this newer version of RxODE
to
function correctly. To install this version, use the command:
install_github("nlmixrdevelopment/RxODE")
.RxODE::rxWinPythonSetup()
to install the required package SnakeCharmR
and to make sure Python and SymPy are working properly.library(SnakeCharmR)
.RxODE
completely, you
can type the following library(RxODE); rxTest();
and it will
run all of the unit tests in RxODE to make sure it is running
correctly on your system. (Note that the testthat
package is required for this, and it will take a long time.)nlmixr
.
devtools
again using library(devtools)
nlmixr
by running install_github("nlmixrdevelopment/nlmixr")
Instructions for Ubuntu-alike distributions are given here (specifically, Ubuntu 16.04 Xenial Xerus), but all current Linux distributions are supported, in principle.
sudo
). Provide your admin password when asked. sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
sudo add-apt-repository 'deb [arch=amd64,i386] https://cran.rstudio.com/bin/linux/ubuntu xenial/'
. If you aren't using Ubuntu Xenial, change xenial
to match your distribution's codename.sudo apt-get update
. sudo apt-get install r-base r-base-dev libssl-dev
sudo apt-get install python-sympy python-pip python-setuptools python3-pip python-dev python3-dev
.devtools
and dependencies.
sudo apt-get install build-essential
devtools
from a clean R session by entering install.packages("devtools")
.devtools
using library(devtools)
.RxODE
.
RxODE
is in the process of being
uploaded to CRAN. nlmixr
needs this newer version of RxODE
to
function correctly. To install this version, use the command:
install_github("nlmixrdevelopment/RxODE")
.SnakeCharmR
using install_github("nlmixrdevelopment/SnakeCharmR")
.library(SnakeCharmR)
.RxODE
completely, you
can type the following library(RxODE); rxTest();
and it will
run all of the unit tests in RxODE to make sure it is running
correctly on your system. (Note that the testthat
package is required for this, and it will take a long time.)nlmixr
.
install_github("nlmixrdevelopment/nlmixr")
Instructions for macOS 10.12 Sierra are provided here. They should be broadly extensible to all recent releases of macOS, however.
R-3.4.1.pkg
(or later) from CRAN.pip
from the macOS terminal prompt: sudo easy_install pip
.sympy
using pip
: sudo -H pip install sympy
.devtools
and dependencies.
devtools
from a clean R session by entering install.packages("devtools")
.devtools
using library(devtools)
.sudo xcodebuild -license
agree
at the end. (If you don't, you can't use nlmixr
or anything else that requires compilation on macOS. Don't yell at us, yell at Apple.) gfortran
: download the appropriate macOS installer from here and run it.RxODE
.
RxODE
is in the process of being
uploaded to CRAN. nlmixr
needs this newer version of RxODE
to
function correctly. To install this version, use the command:
install_github("nlmixrdevelopment/RxODE")
.SnakeCharmR
using install_github("nlmixrdevelopment/SnakeCharmR")
.library(SnakeCharmR)
.RxODE
completely, you
can type the following library(RxODE); rxTest();
and it will
run all of the unit tests in RxODE to make sure it is running
correctly on your system. (Note that the testthat
package is required for this, and it will take a long time.)nlmixr
.
install_github("nlmixrdevelopment/nlmixr")