Closed fh-mthomson closed 8 months ago
Hi @fh-mthomson
Interesting the dockerfile from https://github.com/paws-r/paws/blob/main/docker/rocker-r-base/dockerfile builds successfully on my machine. I will spin up a sagemaker instance on AWS to see if i can mimic this behaviour :)
@fh-mthomson what version of R are you using.
thanks for the pointer! One issue was that I was missing libcurl4-openssl-dev
in the Docker image. pak
ftw:
> pak::pak("paws.common")
✔ Loading metadata database ... done
✖ Missing 1 system package. You'll probably need to install it manually:
+ libcurl4-openssl-dev - curl
ℹ No downloads are needed
✔ 1 pkg + 12 deps: kept 13 [6.3s]
After adding libcurl4-openssl-dev
, the following now works:
> pak::pak("paws.common")
✔ Updated metadata database: 766.45 kB in 2 files.
✔ Updating metadata database ... done
→ Will update 1 package.
→ Will download 1 CRAN package (112.73 kB).
+ paws.common 0.6.3 → 0.6.3 [bld][cmp][dl] (112.73 kB) + ✔ pandoc
✔ All system requirements are already installed.
? Do you want to continue (Y/n) y
ℹ Getting 1 pkg (112.73 kB)
✔ Cached copy of paws.common 0.6.3 (source) is the latest build
✔ No downloads needed, all packages are cached
ℹ Building paws.common 0.6.3
✔ Built paws.common 0.6.3 (538ms)
✔ Installed paws.common 0.6.3 (1.2s)
✔ 1 pkg + 12 deps: kept 12, upd 1 [25.9s]
However, it's still failing when installing directly from GitHub (or the source package):
# 0.6.3 fails
devtools::install_github("paws-r/paws/paws.common@54db5e3f10a1fae0eea56a3c3207ea464e4ab78e")
# 0.6.2 passes
devtools::install_github("paws-r/paws/paws.common@a96713f69d53c26ffe8134e2d5a35b3c73a9a057")
I'm using R 4.1.3, but have also replicated the issue on 4.2.3.
Of note, I'm installing packages from PPM (repo option: https://packagemanager.posit.co/cran/__linux__/jammy/latest), so there is pretty good binary availability. But, the package should still be installable from source, so this seems like a subtle regression.
Thanks for the in-depth analysis. I will try and replicate the issue tomorrow. I am racking my brain trying to think what could of caused it 😔
Thank you for investigating and the quick responses! Looks like this is also impacting others: https://github.com/cran/paws.common/issues/1#issue-1983996934
Here's the offending line: https://github.com/paws-r/paws/blob/33de2e8a6362395acdcd40caf8b95a1c1066dd2d/paws.common/R/cache.R#L14
I cloned the package, then after loading:
Commenting out, then reloading:
> set_os_env_cache()
Error in `[<-`(`*tmp*`, found, 2, value = "") :
(subscript) logical subscript too long
Thank you for the recent 0.6.3 release! Unfortunately, I'm having issues installing from CRAN (running on Workbench hosted on Ubuntu jammy):
Installing from
https://cran.rstudio.com/
:Similarly, pulling from 54db5e3f10a1fae0eea56a3c3207ea464e4ab78e :