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