-
Notifications
You must be signed in to change notification settings - Fork 36
mrgsolve Installation
-
R
: https://cran.r-project.org/- Currently R >=
3.1.2
is required
- Currently R >=
- Seriously consider running in Rstudio if possible. This is not required but is recommended.
- Compilers:
C++
andgfortran
(see theCompilers
section below)
Current versions of C++
and FORTRAN
compilers are required to use
mrgsolve
. Available compilers and requirements may vary by operating
system. Please see system-specific instructions below. But note well
that the toolchain that needs to be in place is the usual toolchain
required for ordinary use of R
(either to compile R
from source or
to compile R
packages from source). There is very detailed and
complete information on compilers to use with R
on the r-project
website (https://cran.r-project.org/doc/manuals/R-admin.html and see
links below). There are no special compiler requirements to get
mrgsolve
up and running; just install the compilers you would normally
need to use with R
and mrgsolve
will compile and you will be able to
compile your mrgsolve
models.
You need to download and properly install the Windows toolset
(Rtools
). Do not use any compiler other than the one provided by the
r-project
. You MUST use Rtools
. Please update to a recent
version even if you think you already have it installed.
These tips are based on many hours spent helping people install Rtools
for Windows properly.
- Download
RtoolsXX.exe
from this page-
XX
is the version number (e.g.Rtools35.exe
) - Get the version number that corresponds to your version of
R
- Do not get a version that is not frozen yet
-
- Install
RtoolsXX.exe
- When you are installing, pay attention for a prompt asking about
changing the
PATH
; make sure that the installer updatesPATH
; you might have to opt in to this path modification
- When you are installing, pay attention for a prompt asking about
changing the
- Check your
PATH
environment variable inR
- Use the command
Sys.getenv("PATH")
in R, after restarting to make sure the proper directories are listed there.R
will not find the toolchain unless thePATH
is correctly - If
PATH
is not properly set, try to set it with a system-wide environment variable - If a system-wide environment variable is not posible, there are some other very good options here
- Use the command
- Common error messages from incorrect Windows installs can be found here
Install C++ and gfortran compilers found here: https://cran.r-project.org/bin/macosx/tools/
UNIX usually include C++
and FORTRAN
compliers. If not, install
gcc
.
library(mrgsolve)
?mrgsolve
example("mrgsolve")