nlmixr2 / nlmixr2est

nlmixr2 estimation routines
https://nlmixr2.github.io/nlmixr2est/
GNU General Public License v2.0
7 stars 3 forks source link

nlmixr2 3.0.1 issue: Error in .foceiFitInternal(.env) : CHAR() can only be applied to a 'CHARSXP', not a 'raw' #490

Closed RikSchoemaker closed 3 weeks ago

RikSchoemaker commented 3 weeks ago

I’m running some test models from my standard set and getting the following error:

|-----+---------------+-----------+-----------+-----------+-----------+-----------+-----------+-----------| | 38| 57884.920 | 1.177 | 1.282 | -0.06112 | -1.601 | -0.2279 | 0.4158 | -1.465 | | U| 57884.92 | 7.177 | 6.370 | 4.185 | 0.2098 | 1.845 | 2.245 | 1.075 | | X| 57884.92 | 1310. | 584.1 | 65.70 | 0.2098 | 1.845 | 2.245 | 1.075 | | 39| 57884.830 | 1.191 | 1.330 | -0.05977 | -1.611 | -0.2201 | 0.3285 | -1.465 | | U| 57884.83 | 7.191 | 6.418 | 4.186 | 0.2083 | 1.849 | 2.191 | 1.075 | | X| 57884.83 | 1328. | 612.9 | 65.79 | 0.2083 | 1.849 | 2.191 | 1.075 | Error in .foceiFitInternal(.env) : CHAR() can only be applied to a 'CHARSXP', not a 'raw' Restart 1/3 Error in .foceiFitInternal(.ret) : Assertion on 'fitEnv$etaObj$ID' failed: Must be of type 'integer', not 'factor'. Restart 2/3 Error in .foceiFitInternal(.ret) : Assertion on 'fitEnv$etaObj$ID' failed: Must be of type 'integer', not 'factor'. Restart 3/3 Error in .foceiFitInternal(.ret) : Assertion on 'fitEnv$etaObj$ID' failed: Must be of type 'integer', not 'factor'. Error : Could not fit data Assertion on 'fitEnv$etaObj$ID' failed: Must be of type 'integer', not 'factor'. Error: Could not fit data Assertion on 'fitEnv$etaObj$ID' failed: Must be of type 'integer', not 'factor'.

Any idea what that could be? Reproducible example attached 😊

Infusion_1CPTMM.csv test.R.txt

mattfidler commented 3 weeks ago
Thread 1 "R" hit Breakpoint 2, 0x00007ffff7b242a0 in Rf_error () from /usr/lib/R/lib/libR.so
(gdb) bt
#0  0x00007ffff7b242a0 in Rf_error () from /usr/lib/R/lib/libR.so
#1  0x00007ffff7b8f8b8 in R_CHAR () from /usr/lib/R/lib/libR.so
#2  0x00007fffec926a65 in Rcpp::internal::string_proxy<16, Rcpp::PreserveStorage>::operator char* (this=<optimized out>, this=<optimized out>)
    at /usr/lib/R/site-library/Rcpp/include/Rcpp/vector/string_proxy.h:128
#3  Rcpp::internal::operator+ (y=..., y=..., x="\"")
    at /usr/lib/R/site-library/Rcpp/include/Rcpp/vector/string_proxy.h:260
#4  foceiCalcCov (e=...) at inner.cpp:5283
#5  0x00007fffec92c8b8 in foceiFitCpp_ (e=...) at inner.cpp:6725
mattfidler commented 3 weeks ago

This is now fixed.

I will probably be released in 1-2 months (depending on CRAN shutdown time)

You can download with:

remotes::install_github("nlmixr2/nlmixr2est")

You could also install from r-universe once it has been compiled.

RikSchoemaker commented 2 weeks ago

Thank you so much!!!😁

On 12 Nov 2024, at 22:47, Matthew Fidler @.***> wrote:



This is now fixed.

I will probably be released in 1-2 months (depending on CRAN shutdown time)

You can download with:

remotes::install_github("nlmixr2/nlmixr2est")

You could also install from r-universe once it has been compiled.

— Reply to this email directly, view it on GitHubhttps://github.com/nlmixr2/nlmixr2est/issues/490#issuecomment-2471650506, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AFPJYFYHOMLA5OVX5G5MNBT2AJZOHAVCNFSM6AAAAABRUP67WSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINZRGY2TANJQGY. You are receiving this because you authored the thread.Message ID: @.***>

mattfidler commented 1 week ago

This is on CRAN today.