Translate Nonmem $PK, $PRED sections or other Nonmem code to R code
NMcode2R(text)
text
the Nonmem code.
You probably want to run this on text obtained by using the NMreadSection function.
R code as text