ISoP ISoP on Twitter | ACoP ACoP on Twitter | PAGE | WCoP | PAGANZ | PAGJa

Installing nlmixr and RxODE on a MAC OS


#1

The installation guide for nlmixr currently provides instructions for Windows. I have succesfully installed the nlmixr package on my pc, and I would like to install it on my Macbook Pro as well.

Is it possible to install nlmixr and RxODE packages on my Macbook Pro running Sierra and R 3.2.? if so how?

I run

install.packages("devtools")
library(devtools)

successfully, but when I run

install_github('nlmixrdevelopment/RxODE')
install_github('nlmixrdevelopment/nlmixr')

I get the following errors

Downloading GitHub repo nlmixrdevelopment/RxODE@master
from URL https://api.github.com/repos/nlmixrdevelopment/RxODE/zipball/master
Error: Could not find build tools necessary to build RxODE

Assuming I need to do something with the xcode command line tools to get it to work?


#2

This worked for me. The last two lines will likely solve the issue (Rstudio --> not Microsoft Open R)

  1. install Xcode 8.1 and command line tools (This replaces RTools is my guess)
  2. install devtools (idem)
  3. optional (install homebrew - but let me know whether the first two already help)

install.packages(“devtools”)
library(devtools)
devtools::install_github(“hadley/devtools”)
devtools::has_devel()

install.packages(“Rcpp”, dependencies = TRUE)
install.packages(“RcppEigen”)
install.packages(“RcppArmadillo”)

install.packages(“BH”)
install.packages(“coda”)
install.packages(“brew”)
install.packages(“inline”)
install.packages(“lbfgs”)

Do not use: install.packages(“RxODE_0.5-4.tar.gz”, repos = NULL, type = “source”)
Do not use: install.packages(“RxODE”, repos = NULL, type = “source”)

Use these:
devtools::install_github(“nlmixrdevelopment/nlmixr”, repos = NULL, type = “source”)
devtools::install_github(“nlmixrdevelopment/RxODE”, repos = NULL, type = “source”)