ropensci / weathercan

R package for downloading weather data from Environment and Climate Change Canada
https://docs.ropensci.org/weathercan
GNU General Public License v3.0
102 stars 29 forks source link

Installing using `devtools` #127

Closed gilberto-sassi closed 3 years ago

gilberto-sassi commented 3 years ago

Hi guys,

I tried to install weathercan using devtools::install_github("ropensci/weathercan", build_vignettes = TRUE), and worked :). But when I tried to load the package with library(weathercan), I got the following messagens:

Error: package or namespace load failed for ‘weathercan’:
 .onLoad failed in loadNamespace() for 'weathercan', details:
  call: is_old_cache(cache)
  error: lazy-load database '/usr/local/lib/R/site-library/cachem/R/cachem.rdb' is corrupt
In addition: Warning message:
In is_old_cache(cache) : internal error -3 in R_decompress1

I am new to R, I have no idea how to solve this error. I am using Ubuntu, and R version 4.1.1.

I apologize if my issue is too simple, and for my poor english.

Gilberto.

steffilazerte commented 3 years ago

Hi @gilberto-sassi!

Sometimes all you need to do is restart R after installing the package and try again. If that doesn't work, try updating the package that seems to be having trouble (cachem) install.packages("cachem")

If that doesn't work, try updating all your packages remotes::update_packages().

Let us know how it goes!

gilberto-sassi commented 3 years ago

It worked!

Thank you!

Gilberto.

steffilazerte commented 3 years ago

Great!