Skip to content

Latest commit

 

History

History
49 lines (33 loc) · 1.2 KB

README.md

File metadata and controls

49 lines (33 loc) · 1.2 KB

runnonmem

Lifecycle: experimental

The goal of runnonmem is to run NONMEM from R. Developed and tested on a Windows environment.

Installation

# install.packages("remotes")
remotes::install_github("FelicienLL/runnonmem")

Example

First, define where is NONMEM is installed

library(runnonmem)
options(runnonmem_nmfe_location = "C:/nmXXXXX/util/nmfeXX.bat")

Then launch a run

#If the control stream is in the working directory, just execute
runnonmem("mod001.mod")

# Or specify the project directory apart
runnonmem("mod001.mod", "/my/working/directory")

# Or full path to model object
runnonmem(file = "C:/my/working/directory.mod001.mod")

Development

I often need to run NONMEM with the snap of a finger, without opening Pirana or something else. So a long time ago I made some messy code to achieve that. Recently, I decided to clean it and I turned it into a small proper R package. Instead of keeping it for myself, here it is.