statsr icon indicating copy to clipboard operation
statsr copied to clipboard

trouble installing statsr on Mac

Open hmehta2016 opened this issue 2 years ago • 4 comments

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!

hmehta2016 avatar Feb 18 '23 20:02 hmehta2016

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

mine-cetinkaya-rundel avatar Feb 22 '23 14:02 mine-cetinkaya-rundel

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’

  • installing source package ‘statsr’ ... ** using staged installation ** R ** data *** moving datasets to lazyload DB ** inst ** byte-compile and prepare package for lazy loading ** help *** installing help indices *** copying figures ** building package indices ** testing if installed package can be loaded from temporary location ** testing if installed package can be loaded from final location ** testing if installed package keeps a record of temporary installation path
  • DONE (statsr)

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

hmehta2016 avatar Mar 03 '23 04:03 hmehta2016

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 avatar Dec 01 '23 18:12 omibonilla

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

omibonilla avatar Dec 01 '23 18:12 omibonilla