Akthem
Akthem

Reputation: 53

Object pinned to github repo is experiencing delays when called back using pin_get

When I call back a pinned object from github I noticed that it does not return the latest updated version and there is at least five minutes delay. Here is an example:

board_register_github(name = "GitHub-BFDD", repo = "AkthemRehab/BFDD", branch = "main")
Results <- data.frame(Results=numeric(), stringsAsFactors = F)
pin(Results, "Results", board = "GitHub-BFDD")

Now lets add one record to the Results data frame and update the pin:

Results[nrow(Results)+1,] <- as.numeric(10)
pin(Results, "Results", board = "GitHub-BFDD")

When I recall the updated Results data frame it take at least 5-10 minutes before reflecting the update. When I check the csv file in github it get updated instantaneously though. I use this command to get the updated pin to my R environment:

Results <- pin_get("Results", board = "GitHub-BFDD")

I am updating the Results data frame quiet often in my application and would like pins to reflect the updates in real-time.

Edit: Any updates or inputs to that question ?

Upvotes: 1

Views: 66

Answers (0)

Related Questions