googleAnalyticsR icon indicating copy to clipboard operation
googleAnalyticsR copied to clipboard

Use pins to distribute ga_model objects

Open MarkEdmondson1234 opened this issue 5 years ago • 1 comments

Is your feature request related to a problem? Please describe. Support pins discovery to build up a repo of ga_model objects

Describe the solution you'd like Use https://rstudio.github.io/pins/articles/boards-websites.html infrastructure to define ga_model objects from say the googleAnalyticsR website

Describe alternatives you've considered Could just upload the rds files directly to website

MarkEdmondson1234 avatar Sep 13 '19 02:09 MarkEdmondson1234

Start of trying this out: https://github.com/MarkEdmondson1234/ga_model_pins

library(pins)

board_register_github(repo = "MarkEdmondson1234/ga_model_pins", branch = "main")

# repeat for each model to pin
m <- ga_model_example("decomp_ga_advanced.gamr")
pin(m, name = "decomp_ga_advanced", description = m$description, board = "github")

To use:

ga_model(81416156, pin_get("decomp_ga", board = "github"))
ga_model(81416156, pin_get("decomp_ga_advanced", board = "github"), frequency = 7)

MarkEdmondson1234 avatar May 01 '21 14:05 MarkEdmondson1234