leeper / prediction

Tidy, Type-Safe 'prediction()' Methods
https://cran.r-project.org/package=prediction
Other
89 stars 14 forks source link

prediction package not found #42

Closed camppdx closed 4 years ago

camppdx commented 4 years ago

Please specify whether your issue is about:

If you are reporting (1) a bug or (2) a question about code, please supply:

I'm trying to simply download and apply the 'margins' package, however I keep getting this error issue related to not finding 'prediction'. I'm using R studio, R version 3.4.4. Do you have suggestions to remedy this?

install.packages("margins")

Warning in install.packages : dependency ‘prediction’ is not available trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.4/margins_0.3.23.zip' Content type 'application/zip' length 1906146 bytes (1.8 MB) downloaded 1.8 MB package ‘margins’ successfully unpacked and MD5 sums checked

## load package
library("margins")

package �margins� was built under R version 3.4.4

Traceback Error: package or namespace load failed for ‘margins’ in loadNamespace(j <- i[[1L]], c(lib.loc,.libPaths()), versionCheck = vI[[j]]): there is no package called ‘prediction’

  1. stop(msg, call. = FALSE, domain = NA)
  2. value[3L]
  3. tryCatchOne(expr, names, parentenv, handlers[[1L]])
  4. tryCatchList(expr, classes, parentenv, handlers)
  5. tryCatch({ attr(package, "LibPath") <- which.lib.loc ns <- loadNamespace(package, lib.loc) env <- attachNamespace(ns, pos = pos, deps) ...
  6. library(margins)
leeper commented 4 years ago

Can you try again? This sounds like a flaky error, as the package is definitely on CRAN.

camppdx commented 4 years ago

Thanks for the reply. It looks like you're right, it was a flaky issue. I updated all of my R files to the most recent version and it seems to find the 'prediction' package now.

Thanks!

On Sun, Aug 25, 2019 at 11:28 AM Thomas J. Leeper notifications@github.com wrote:

Can you try again? This sounds like a flaky error, as the package is definitely on CRAN.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/leeper/prediction/issues/42?email_source=notifications&email_token=AM7E7YWAWFXS7DWTO4P6YJLQGLFMRA5CNFSM4IOYDFQ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5CZD4Y#issuecomment-524653043, or mute the thread https://github.com/notifications/unsubscribe-auth/AM7E7YQYJICNHKTOJHUKRSTQGLFMRANCNFSM4IOYDFQQ .