0

I have been using bizdays package for a long time and since I changed my window installation recently I had to install all of the packages for R. The only package that is not installed is bizdays. The documentations appear to show this package should be still on CRAN, but I cannot find it or install it. Is there any way to somehow install it back?

This is the error I am getting:

install.packages("bizdays")

Installing package into ‘C:/Users/me/OneDrive/Documents/R/win-library/3.6’ (as ‘lib’ is unspecified)

So it seems the package got installed, and when I try to use it this is the error thrown:

library(bizdays)

Error in library(bizdays) : there is no package called ‘bizdays’

Ibo
  • 4,081
  • 6
  • 45
  • 65
  • 2
    Where is the error? Looks like it got installed into your personal library. – thelatemail Nov 08 '22 at 22:46
  • It gives me that message, but the library does not show up and when I use inside my R script I get an error message, I will update the post – Ibo Nov 08 '22 at 22:47
  • 1
    What do you see if you run `.libPaths()`? – zephryl Nov 08 '22 at 22:49
  • Package names are case sensitive. Is the package named “bizdays” or “Bizdays”? – Limey Nov 08 '22 at 22:49
  • @zephryl I see two results: [1] "C:/Users/me/OneDrive/Documents/R/win-library/3.6" [2] "C:/Program Files/R/R-3.6.2/library" – Ibo Nov 08 '22 at 22:50
  • 3
    I have heard of people having problems installing packages into OneDrive. Perhaps try the advice here and in the referenced prior answer: https://stackoverflow.com/questions/56468370/how-to-get-r-to-stop-downloading-r-packages-to-onedrive – Jon Spring Nov 08 '22 at 22:53
  • 1
    You may need to update R to =>4.0 – Isaiah Nov 08 '22 at 22:55
  • 1
    I'm using 4.2.2. You can check with `R.version`. Needing to update R is a fairly common cause of package install problems. Your path is to 3.6.2 – Isaiah Nov 08 '22 at 22:59
  • 1
    upgrading to version 4.2.2 resolve dthe problem, but RStudion needed to be relaunched – Ibo Nov 08 '22 at 23:20
  • Awesome! I'll move the comments to answer then. – Isaiah Nov 08 '22 at 23:28

1 Answers1

0

You may need to update R to =>4.0 You can check with R.version. Needing to update R is a fairly common cause of package install problems, as packages can use new R features. You will need to restart RStudio

Isaiah
  • 2,091
  • 3
  • 19
  • 28