nlmixrdevelopment / nlmixr

nlmixr: an R package for population PKPD modeling
https://nlmixrdevelopment.github.io/nlmixr/
GNU General Public License v2.0
114 stars 45 forks source link

error message in BootstrapFit #624

Open Chickenlover0908 opened 1 year ago

Chickenlover0908 commented 1 year ago

hello, nlmixr team. The “bootstrapFit” can not run, even i run the example which in function help page. The error messages are:

Error in "cli::cli_h1(\"Running nlmixr for model index: {.env$modidx}\")": ! Invalid cli literal: `{.env$mod…}starts with a dot. i. Interpreted literals must not start with a dot in cli >= 3.4.0. i.{}expressions starting with a dot are now only used for cli styles. i. To avoid this error, put a space character after the starting{or use parentheses:{(.env$mod_…)}`.

I don’t know how to solve this error, waiting for your help😭. PS: my article is about population PK model on chicks, in which the model was established with “nlmixr”. If i publish this paper, what should I cite? And @mattfidler has helped me a lot, he solved my every question about this package, can I thank him in the acknowledge section of the paper? Thank you very much!

mattfidler commented 1 year ago

Hi @Chickenlover0908

This is because of an incompatibility with cli 3.4. This is fixed in the development version of nlmixr2extra (which I am working to put on CRAN), but not here. I will continue to develop nlmixr2 in favor of nlmixr

In the mean-time, the quickest work-around is to downgrade cli 3.4 by:

devtools::install_version("cli", version = "3.3.0", repos = "http://cran.us.r-project.org")

As far as publications are concerned, we typically keep our publications for citation in the R package:

citation("nlmixr")

To cite package ‘nlmixr’ in publications use:

  Fidler M, Xiong Y, Schoemaker R, Wilkins J, Trame M, Hooijmaijers R,
  Post T, Wang W (2022). _nlmixr: Nonlinear Mixed Effects Models in
  Population Pharmacokinetics and Pharmacodynamics_. R package version
  2.0.7, <https://CRAN.R-project.org/package=nlmixr>.

  Fidler M, Wilkins J, Hooijmaijers R, Post T, Schoemaker R, Trame M,
  Xiong Y, Wang W (2019). “Nonlinear Mixed-Effects Model Development
  and Simulation Using nlmixr and Related R Open-Source Packages.”
  _CPT: Pharmacometrics \& Systems Pharmacology_, *8*(9), 621-633.
  <https://doi.org/10.1002/psp4.12445>.

  Schoemaker R, Fidler M, Laveille C, Wilkins J, Hooijmaijers R, Post
  T, Trame M, Xiong Y, Wang W (2019). “Performance of the SAEM and
  FOCEI Algorithms in the Open-Source, Nonlinear Mixed Effect Modeling
  Tool nlmixr.” _CPT: Pharmacometrics \& Systems Pharmacology_,
  *8*(12), 923-930. <https://doi.org/10.1002/psp4.12471>.

There is one more publication about nlmixr from the team that could be used:

https://ascpt.onlinelibrary.wiley.com/doi/full/10.1002/psp4.12618

You can thank me in the paper if you wish, I usually have my name Matthew Fidler in publications.

Chickenlover0908 commented 1 year ago

Hi @Chickenlover0908

This is because of an incompatibility with cli 3.4. This is fixed in the development version of nlmixr2extra (which I am working to put on CRAN), but not here. I will continue to develop nlmixr2 in favor of nlmixr

In the mean-time, the quickest work-around is to downgrade cli 3.4 by:

devtools::install_version("cli", version = "3.3.0", repos = "http://cran.us.r-project.org")

As far as publications are concerned, we typically keep our publications for citation in the R package:

citation("nlmixr")

To cite package ‘nlmixr’ in publications use:

  Fidler M, Xiong Y, Schoemaker R, Wilkins J, Trame M, Hooijmaijers R,
  Post T, Wang W (2022). _nlmixr: Nonlinear Mixed Effects Models in
  Population Pharmacokinetics and Pharmacodynamics_. R package version
  2.0.7, <https://CRAN.R-project.org/package=nlmixr>.

  Fidler M, Wilkins J, Hooijmaijers R, Post T, Schoemaker R, Trame M,
  Xiong Y, Wang W (2019). “Nonlinear Mixed-Effects Model Development
  and Simulation Using nlmixr and Related R Open-Source Packages.”
  _CPT: Pharmacometrics \& Systems Pharmacology_, *8*(9), 621-633.
  <https://doi.org/10.1002/psp4.12445>.

  Schoemaker R, Fidler M, Laveille C, Wilkins J, Hooijmaijers R, Post
  T, Trame M, Xiong Y, Wang W (2019). “Performance of the SAEM and
  FOCEI Algorithms in the Open-Source, Nonlinear Mixed Effect Modeling
  Tool nlmixr.” _CPT: Pharmacometrics \& Systems Pharmacology_,
  *8*(12), 923-930. <https://doi.org/10.1002/psp4.12471>.

There is one more publication about nlmixr from the team that could be used:

https://ascpt.onlinelibrary.wiley.com/doi/full/10.1002/psp4.12618

You can thank me in the paper if you wish, I usually have my name Matthew Fidler in publications.

Thank you for your reply !