% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/nonmem2mrgsolve.R
\name{nonmem2mrgsolve}
\alias{nonmem2mrgsolve}
\title{Automated NONMEM to mrgsolve Translation}
\usage{
nonmem2mrgsolve(
  filename = NULL,
  dir = NULL,
  sigdig = NULL,
  write = T,
  return.orig = F,
  out.filename = NULL,
  use.cnv = F
)
}
\arguments{
\item{filename}{String of the NONMEM model name with or without the .ctl (or .mod) extension}

\item{dir}{String of the directory path to the NONMEM files (if not already given in the filename input; or if the working directory was not already set)}

\item{sigdig}{Numeric of the number of significant digits to round non-fixed thetas and etas to; default NULL for no rounding}

\item{write}{Logical for whether to write the mrgsolve code to an R file (\code{T} or \code{F})}

\item{return.orig}{Logical for whether to output the original NONMEM ctl and ext files (\code{T} or \code{F})}

\item{out.filename}{String of the name for the mrgsolve output file without the .R extension}

\item{use.cnv}{Logical for whether to use the NONMEM cnv file for final parameter estimates instead of the ext file (\code{T} or \code{F})}
}
\value{
R dataframe of the mrgsolve code
}
\description{
Translates a NONMEM model into mrgsolve syntax using the NONMEM ctl and ext (or cnv) files.
}
\examples{
# setwd("path/to/directory")
# nonmem2mrgsolve::nonmem2mrgsolve(filename = "nonmem-model.ctl")

}
