Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in uniroot(f = function(x) { : f() values at end points not of opposite sign #822

Open
Puzzled-Face opened this issue May 13, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Puzzled-Face
Copy link
Collaborator

Some tests have started to report problems with the use of uniroot. A typical warning is:

Warning (test-helpers_knitr.R:89:15): knit_print methods exist for all relevant classes and produce consistent output
Error for class StartingDose: Error in uniroot(f = function(x) { : 
  f() values at end points not of opposite sign

The warnings are all reported in test-helpers_knitr.R. The affected classes are

  • StartingDose
  • DualEndpointBeta
  • DualEndpointEmax
  • DualEndpointRW
  • DualDesign
  • TDDesign

No test fails as a result of this error.

The only calls to uniroot within the crmPack source code are on line 394 of Simulations-methods.R (summary-GeneralSimulations) and line 4009 of Design-methods.R (simulate-DADesign).

The error for StartingDose is particularly surprising as the class is not involved in any simulation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant