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

Undefined variable in log message resulting in error #8

Closed
daroczig opened this issue Mar 4, 2024 · 2 comments · Fixed by #7
Closed

Undefined variable in log message resulting in error #8

daroczig opened this issue Mar 4, 2024 · 2 comments · Fixed by #7
Assignees

Comments

@daroczig
Copy link

daroczig commented Mar 4, 2024

Hi,

Although I see you have moved away from using logger, but the CRAN version still references it, and the reverse dependency checks are failing due to https://github.com/openpharma/mtdesign/blob/main/R/functions.R#L117

I think the problem is that you are explicitly logging bounds, while it might not have been previously created -- only if (is.na(nMin) | is.na(nMax)).

So thus the logging attempt fails. IMO this was not previously captured due to no one running the fn with DEBUG log level and with both nMin and nMax defined? Anyway, I'd highly appreciate an update on CRAN so that the reverse dependency check can pass 🙏

I'm also happy to discuss your performance issues with logger if it's still on the table :)

@daroczig
Copy link
Author

daroczig commented Mar 4, 2024

To replicate with the current version:

> futile.logger::flog.threshold("TRACE")
> y <- createGrid(p0 = 0.1, p1 = 0.4, alpha = 0.1, beta = 0.1, nMin = 20, nMax = 30)
mtdesign 2024-03-04 14:28:57 DEBUG createGrid: Entry
Error in createGrid(p0 = 0.1, p1 = 0.4, alpha = 0.1, beta = 0.1, nMin = 20,  : 
  object 'bounds' not found

@Puzzled-Face Puzzled-Face linked a pull request Oct 31, 2024 that will close this issue
@Puzzled-Face
Copy link
Collaborator

Thank you. I've fixed this in the latest development release, which should soon be released on CRAN. Unfortunately, I don't have the bandwidth to work on the problem with logger, but I appreciate your interest.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants