-
Notifications
You must be signed in to change notification settings - Fork 113
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
hBayesDM package error in R 4.2.2 #153
Comments
having trouble with dd_hyperbolic too. I think it's related to https://stackoverflow.com/questions/72848442/r-warning-lengthx-2-1-in-coercion-to-logical1 |
The problem is due to this line: Line 144 in 534907d
This test makes no sense. Both if (is.null(data) || identical(data, NA) || identical(data, "")) { or if there must be no if (is.null(data) || any(is.na(data)) || identical(data, "")) { |
Thanks @steffen-stell for your suggestion. We will double check and fix the line in the next version. |
Hi everyone, I encounter the same issue. is there a version that is now working or do you know how to fix this? many thanks |
Hey ChristinaWUUK, I am not aware of when to expect any updates to the package. That said, I did have to re-run some analysis recently and the package worked fine once I reverted back to the appropriate archived versions of R and Rtools. |
Hi @ChristinaWUUK, could you check if this would work? devtools::install_github("CCS-Lab/hBayesDM", ref="develop", subdir="R") |
@youngahn I am experiencing the same issue - for me, using the above installation does not resolve the
|
Thank you @youngahn, really appreciate your promt response to help! I tried installing from github, however, I later on got stuck with the running bandit2arm_delta (Error in stanc(file = file, model_code = model_code, model_name = model_name, : |
@AaronLaycock thanks! which version of R and R tools did you use? It worked fine with R 4.1.3 and Rtools 4.0 but i did have to install install.packages("StanHeaders", repos = c("https://mc-stan.org/r-packages/", getOption("repos"))) |
@ChristinaWUUK, no worries. Great news, it's working. I used R version 4.1.3 with Rtools 4.0 also, it ran with no problems from the initial download. |
Thank you @ChristinaWUUK @AaronLaycock - it works fine after reverting to R 4.1.3. |
Since people keep asking and this is a fairly simple issue to fix, I have made PR #161. You can install it like this:
|
Hi all,
FYI
After experiencing difficulties (PSA) running an ORL model using the hBayesDM package in R version 4.2.2 (with the appropriate version of Rtools), the issue was rectified when I regressed to R version 4.1.3 (and associated Rtools package).
The text was updated successfully, but these errors were encountered: