Open barracuda156 opened 5 months ago
I am not familiar with Macports, so it might be helpful to give me a bit of info on how this code may be running in your situation. The test that is failing is equivalent to this:
library(pins)
b <- board_temp()
b |> pin_write(1:10, "nice-numbers")
#> Guessing `type = 'rds'`
#> Creating new version '20240417T175854Z-709c5'
#> Writing to pin 'nice-numbers'
path <- pin_download(b, "nice-numbers")
## can I write to this path?
fs::file_access(path, "write")
#> /var/folders/hv/hzsmmyk9393_m7q3nscx1slc0000gn/T/RtmpuGG5Mi/pins-abf8acf40f6/nice-numbers/20240417T175854Z-709c5/nice-numbers.rds
#> FALSE
fs::file_info(path)$permissions
#> [1] r--r--r--
Created on 2024-04-17 with reprex v2.1.0
Here, notice that I do not have permission to write to that path. This is because when the pin is written, we set the permissions:
https://github.com/rstudio/pins-r/blob/b8827ac2d61cda526d01a9a4db57af4d4108bceb/R/board_folder.R#L82
Seems like something unusual may be going on with how your setup deals with the filesystem?
This is pretty likely it is our bug in Macports and not
pins
bug. Please feel free to close the issue in such a case, but an advice is still appreciated.