Open rjake opened 2 months ago
This is an interesting idea @rjake! We can keep this open to collect feedback from folks.
As a workaround for now, if you wanted to have dev vs. prod datasets, I would recommend storing them in separate pins with pin names like "pin-1-dev", and "pin-1-prod", like so:
env <- "prod"
df_1 <- pin_read(board, paste0("pin-1-", env))
My team is looking for a similar feature, we would use the R_CONFIG_ACTIVE to set the env <-
variable
Would it be possible to have a simplified pin versioning that is similar to a gh branch? I'd like to work on the underlying data for the dev version of an app without affecting the prod version of an app. I'd like to be able to set a variable in both scripts to look for the right version. The recommendation would likely be to have a dev and prod server but we only have one.
Pin script:
App script