-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: package or namespace load failed for ‘pins’ on huggingface #822
Comments
Check out this documentation for managing the cache on read-only systems: https://pins.rstudio.com/reference/board_cache_path.html#details You'll need to use an env var to make sure the cache path is somewhere writable, like |
Let us know if you have further questions! 🙌 |
sorry, I took some time to go through it but I have no idea how to implement it
|
You'll want to set an environment variable to control where the board cache goes. From R, you set an env var with Sys.setenv(PINS_CACHE_DIR = base::tempdir())
Sys.getenv("PINS_CACHE_DIR")
#> [1] "/var/folders/hv/hzsmmyk9393_m7q3nscx1slc0000gn/T//RtmpwgcRgF" Created on 2024-05-03 with reprex v2.1.0 You can set the env var like this: Sys.setenv(PINS_CACHE_DIR = base::tempdir())
library(pins)
board <- board_folder("~/Downloads/")
board_cache_path(board)
#> /var/folders/hv/hzsmmyk9393_m7q3nscx1slc0000gn/T/Rtmpzxh6pl/pins_board_folder
#> /var/folders/hv/hzsmmyk9393_m7q3nscx1slc0000gn/T/Rtmpzxh6pl/1
#> NA
#> /var/folders/hv/hzsmmyk9393_m7q3nscx1slc0000gn/T/Rtmpzxh6pl/FALSE
#> /var/folders/hv/hzsmmyk9393_m7q3nscx1slc0000gn/T/Rtmpzxh6pl/~/Downloads Created on 2024-05-03 with reprex v2.1.0 Or you can set it generally using a non-R tool. |
This issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org) and link to this issue. |
I have this useless-toy model on HF: https://huggingface.co/spaces/vesorit/InflazioneItalia
on posit cloud, it gives a problem in another stage, something that the wonderful @juliasilge already showed here:
https://stackoverflow.com/questions/71397075/why-does-deploying-a-tidymodel-with-vetiver-throw-a-error-when-theres-a-variabl
on HF instead, I get:
Following #705 didn't help
The text was updated successfully, but these errors were encountered: