{"id":16036560,"url":"https://github.com/dgrtwo/rgallery","last_synced_at":"2025-03-18T04:30:26.391Z","repository":{"id":29489278,"uuid":"33026660","full_name":"dgrtwo/rgallery","owner":"dgrtwo","description":"Build a gallery of R snippets","archived":false,"fork":false,"pushed_at":"2015-03-30T17:36:00.000Z","size":132,"stargazers_count":12,"open_issues_count":0,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-02-28T06:55:24.552Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dgrtwo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-03-28T08:38:21.000Z","updated_at":"2023-07-08T18:05:52.000Z","dependencies_parsed_at":"2022-08-24T07:01:10.020Z","dependency_job_id":null,"html_url":"https://github.com/dgrtwo/rgallery","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dgrtwo%2Frgallery","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dgrtwo%2Frgallery/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dgrtwo%2Frgallery/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dgrtwo%2Frgallery/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dgrtwo","download_url":"https://codeload.github.com/dgrtwo/rgallery/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243902241,"owners_count":20366258,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-08T22:05:43.751Z","updated_at":"2025-03-18T04:30:26.028Z","avatar_url":"https://github.com/dgrtwo.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"rgallery: Build a Gallery of R Snippets\n-------------\n\nThis package makes it easy to create an gallery for displaying small R vignettes, or \"snippets\". [View an example here!](http://varianceexplained.org/broom-gallery/)\n\n### Installation\n\nInstall with [devtools](https://github.com/hadley/devtools):\n\n    devtools::install_github(\"dgrtwo/rgallery\")\n\nYou'll need [Jekyll](http://jekyllrb.com/) and [git](http://git-scm.com/) installed as well.\n\n### Usage\n\nTo create and edit your gallery, simply:\n\n1. Set up a gallery by running the following commands in R:\n\n        library(rgallery)\n        create_gallery(\"my-gallery\")\n        build_gallery(\"my-gallery\")\n\n  This downloads the [default r-gallery setup](https://github.com/dgrtwo/rgallery-default) and builds it.\n\n2. Back in the command line, go into the directory and start a Jekyll server:\n\n        cd my-gallery\n        jekyll serve --watch\n\n3. Visit your local gallery at [http://127.0.0.1:4000/](http://127.0.0.1:4000/).\n\n4. To create additional snippets, add `.Rmd` files to the `_R` directory. Make sure you include `layout: snippet` in the YAML header. Then do `build_gallery(\"my-gallery\")` to compile them.\n\n5. To publish your gallery online for free, use [GitHub pages](https://pages.github.com/): just make a public repository and push to the `gh-pages` branch. **Note**: You'll need to change the `url` parameter in `_config.yml` to `http://\u003cyourname\u003e.github.io/\u003crepo-name\u003e`.\n\nThat's all there is to it!\n\n### Additional customization\n\nYou can customize the global knitr options (for example, `cache = TRUE` or `echo = FALSE`) by adding to the `knitr-options` block in `_config.yml`:\n\n    # rgallery options\n    knitr-options:\n      message: false\n\n### Future Plans\n\n* Categories and tags\n* Allowing multiple snippets to be connected, and therefore compiled in a row, to illustrate a larger topic or workflow\n* Allowing snippet submission, as a pull request to the repository, directly from R (i.e. `submit_snippet('my_snippet.Rmd', repo = 'dgrtwo/big-gallery')`). Preferably allow the repository owner to build and approve the snippet from within R as well.\n* Flexible front-ends, including alternatives to Jekyll\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdgrtwo%2Frgallery","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdgrtwo%2Frgallery","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdgrtwo%2Frgallery/lists"}