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

Installation false warning #10

Closed
Tracked by #34
m-clark opened this issue May 22, 2020 · 2 comments
Closed
Tracked by #34

Installation false warning #10

m-clark opened this issue May 22, 2020 · 2 comments

Comments

@m-clark
Copy link
Owner

m-clark commented May 22, 2020

In a recent fresh install I can get the following on a machine that does not have all the packages that might be used.

Error : (converted from warning) namespace ‘rstanarm’ is not available and has been replaced
by .GlobalEnv when processing object ‘brms_model’
ERROR: unable to build sysdata DB for package ‘mixedup’

There is no issue with the build or hundreds of tests, and I have not otherwise found any error. brms_model (along with rstanarm_model) is an internal data object used for the vignettes so that it doesn't have to compile/run during their build. I found that deleting rstanarm or lme4 packages causes this error, but not having other packages installed (like glmmTMB) is not a problem.

There is a closed issue on devtools/remotes that speaks to the problem, but actually wasn't resolved: r-lib/remotes#374

I will update the ReadMe with the workaround noted in the remotes issue and post it here, but otherwise have no idea why it's a problem with 4.0, as nothing changed on my end regarding these objects.

Workaround:

withr::with_envvar(c(R_REMOTES_NO_ERRORS_FROM_WARNINGS="true"), 
  devtools::install_github('m-clark/mixedup')
)
m-clark added a commit that referenced this issue May 25, 2020
@m-clark
Copy link
Owner Author

m-clark commented Jul 1, 2020

Possibly an rstantools issue.

@m-clark
Copy link
Owner Author

m-clark commented Sep 1, 2021

At present this no longer fails with 4.1.1 (at least on Mac), but will still warn during build as it did before (example where brms is installed but rstanarm is not). Perhaps during next update it'd be good to retest. I don't really care about the warning but will leave this open for a while longer.

Warning: namespacerstanarmis not available and has been replaced
by .GlobalEnv when processing objectbrms_model

@m-clark m-clark mentioned this issue Sep 17, 2022
13 tasks
@m-clark m-clark closed this as completed Sep 26, 2022
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

No branches or pull requests

1 participant