tidyverse/readxl

Unable to install using github action

MeWu-IDM opened this issue · 1 comments


We have a github action runs which on windows:latest which setup readxl , it was working prior to the 1.4.1 release
now it throws an error

Error: Error: package or namespace load failed for 'readxl' in inDL(x, as.logical(local), as.logical(now), ...):
ERROR: loading failed
 unable to load shared object 'D:/a/_temp/Library/00LOCK-readxl/00new/readxl/libs/x64/readxl.dll':
* removing 'D:/a/_temp/Library/readxl'
  LoadLibrary failure:  The specified procedure could not be found.

Error: Error: loading failed
Execution halted

you can find the repro using https://github.com/MeWu-IDM/testrepo/blob/main/.github/workflows/main.yml

This is very unlikely to be a problem with readxl. Instead, it's going to be some aspect of the GHA config or runner.

I see you're using install.packages() to install the entire tidyverse package, which raises the issue installing binary vs. source package, which always becomes an issue when a package with compiled code updates on CRAN. There is always some delay between the new release and Windows binaries becoming available.

It will probably self-resolve as Windows binaries show up on CRAN for 1.4.1.

Also, you might want to consider using the actions here for doing things like installing dependencies:

https://github.com/r-lib/actions