Resource busy error when using Pins package with Google Cloud Storage in R

I am using R with the pins package to write a vetiver model to my storage bucket in GCP.

I am getting the following error when I use this code:

enter image description here

board <- board_gcs(
  "john-mlops-bucket",
  prefix = "iris/"
)

board %>% 
  vetiver_pin_write(
    v
  )

When I check the bucket it looks as though it’s writing the model to the appropriate directory

enter image description here

I’d like to be able to share a reprex but not sure this is possible, let me know if this is expected behavior.

Adding to the original post, I have now moved onto creating the plumber file and am trying to write to my board using:

vetiver_write_plumber(board = board, name = "iris_model", rsconnect = FALSE) 

And I am receiving this warning however no plumber file is being written to the board:

enter image description here

Adding some additional info based on feedback from @r2evans about open connections:

enter image description here

Read more here: Source link