I'm encountering the following error when running the example included in the package. The compiler appears to be having trouble. I'm not sure if the problem is isolated to me, given the challenges that I've had getting the package installed to this point.
> mrgsolve_example("pkpd")
Copying pkpdExample.cpp to C:/Users/mtsai/Documents
Use mrgmod() to load and compile.
> cat(readLines("pkpdExample.cpp"),sep="\n")
$PARAM
KA = 1.2, CL = 1, VC = 25
KIN = 100, KOUT = 2, EC50 = 4
$CMT GUT CENT RESP
$SET delta= 0.25
$MAIN
RESP_0 = KIN/KOUT;
$ODE
dxdt_GUT = -KA*GUT;
dxdt_CENT = KA*GUT - (CL/VC)*CENT;
double CP = CENT/VC;
double INH = CP/(EC50+CP);
dxdt_RESP = KIN*(1-INH) - RESP*KOUT;
$CAPTURE CP
> mod <- mread("pkpdExample")
Compiling ... Warning message:
running command 'make -f "C:/Users/mtsai/DOCUME~1/R/R-32~1.0/etc/x64/Makeconf" -f "C:/Users/mtsai/DOCUME~1/R/R-32~1.0/share/make/
winshlib.mk" SHLIB_LDFLAGS='$(SHLIB_CXXLDFLAGS)' SHLIB_LD='$(SHLIB_CXXLD)' SHLIB="C:/Users/mtsai/Documents/pkpdExample.dll" WIN=64 TCLBIN=64 OBJECTS="C:/Users/mtsai/Documents/pkpdExample.cpp.o"' had status 127
Warning: Compile did not succeed. Returning NULL.
Warning message:
running command 'R CMD SHLIB C:/Users/mtsai/Documents/pkpdExample.cpp.cpp -o C:/Users/mtsai/Documents/pkpdExample.dll' had status 1