StatsWithR / statsr

Companion package for the Coursera Statistics with R specialization
Other
69 stars 83 forks source link

trouble installing statsr on Mac #17

Open hmehta2016 opened 1 year ago

hmehta2016 commented 1 year ago

Followed the steps mentioned but am getting this error

library(statsr) Error in FUN(X[[i]], ...) : lazy-load database '/Library/Frameworks/R.framework/Versions/4.2/Resources/library/statsr/data/Rdata.rdb' is corrupt In addition: Warning messages: 1: In FUN(X[[i]], ...) : restarting interrupted promise evaluation 2: In FUN(X[[i]], ...) : internal error -5 in R_decompress1

Installing this on a Mac OS 13.1 and recent updates of RStudio / R

Any help is appreciated. Thanks!

mine-cetinkaya-rundel commented 1 year ago

Could you let us know how you were installing it, i.e. the code you ran to install?

hmehta2016 commented 1 year ago

I ran the below two (with their subsequent output below) in R Studio ..

devtools::install_github("statswithr/statsr")

Downloading GitHub repo statswithr/statsr@HEAD ── R CMD build ───────────────────────────────────────────────────────────────────────────────────────── ✔ checking for file ‘/private/var/folders/nq/xwdfhvdj7wq58q0dnlnbzvqh0000gn/T/RtmpAbFgU4/remotes7b8a15dce1aa/StatsWithR-statsr-9cb9eda/DESCRIPTION’ ... ─ preparing ‘statsr’: ✔ checking DESCRIPTION meta-information ... ─ checking for LF line-endings in source and make files and shell scripts ─ checking for empty or unneeded directories ─ building ‘statsr_0.3.0.tar.gz’

library(statsr)

Error in FUN(X[[i]], ...) : lazy-load database '/Library/Frameworks/R.framework/Versions/4.2/Resources/library/statsr/data/Rdata.rdb' is corrupt In addition: Warning messages: 1: In FUN(X[[i]], ...) : restarting interrupted promise evaluation 2: In FUN(X[[i]], ...) : internal error -5 in R_decompress1

omibonilla commented 8 months ago

Did you find any fix for this issue? I am running Catalina 10.15.7 (macbook pro 2012 that's why) so the latest version of RStudio that I can use, as far as I know, is the 2022.07.2 Build 576.

I was able to install statsr using install_github(StatWithR/statsr) after several attempts. At first I was even having problems installing devtools so I needed to reinstall a few time and also the package "usethis."

But when I try to load statsr, it tells me that there is no package statsr found.

Can anyone please help? I tried installing statsr directly using a .zip but it tells me that the package is for Windows. Is that the problem?

Thanks

omibonilla commented 8 months ago

This is what I am getting: library(statsr) Error in library(statsr) : there is no package called ‘statsr’

install.packages("~/Downloads/statsr-master (1).zip", repos = NULL, type = "win.binary") Error in install.packages : cannot install Windows binary packages on this platform