Skip to content
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

Use pins to distribute ga_model objects #280

Open
MarkEdmondson1234 opened this issue Sep 13, 2019 · 1 comment
Open

Use pins to distribute ga_model objects #280

MarkEdmondson1234 opened this issue Sep 13, 2019 · 1 comment
Assignees

Comments

@MarkEdmondson1234
Copy link
Collaborator

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
Copy link
Collaborator Author

MarkEdmondson1234 commented May 1, 2021

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant