{"id":14068528,"url":"https://github.com/yonicd/carbonace","last_synced_at":"2025-09-23T06:30:55.524Z","repository":{"id":91010623,"uuid":"258466607","full_name":"yonicd/carbonace","owner":"yonicd","description":"convert ace editor as high resolution images to share","archived":false,"fork":false,"pushed_at":"2020-05-04T10:52:28.000Z","size":1475,"stargazers_count":22,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-03T10:51:32.956Z","etag":null,"topics":["ace-editor","r","shiny"],"latest_commit_sha":null,"homepage":"","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yonicd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-04-24T09:27:46.000Z","updated_at":"2021-02-03T19:54:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"8195bbb8-0d94-4318-afa3-779df65e049a","html_url":"https://github.com/yonicd/carbonace","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/yonicd%2Fcarbonace","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yonicd%2Fcarbonace/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yonicd%2Fcarbonace/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yonicd%2Fcarbonace/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yonicd","download_url":"https://codeload.github.com/yonicd/carbonace/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233934315,"owners_count":18753583,"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":["ace-editor","r","shiny"],"created_at":"2024-08-13T07:06:14.577Z","updated_at":"2025-09-23T06:30:55.078Z","avatar_url":"https://github.com/yonicd.png","language":"R","funding_links":[],"categories":["R"],"sub_categories":[],"readme":"# carbonace\n\nWanna tweet a pretty screenshot of your code like the pros?\n\n\u003cimg src = 'inst/images/other_init_snap.png' width='50%'\u003e\n\nScript inspired from @nujcharee baby :shark: loop [tweet](https://twitter.com/Nujcharee/status/1102607275989049346) ht @maelle\n\n**What it is**: \n\nA shiny app that converts the ace editor as high resolution images to share that are as pretty and crisp as [carbon](https://carbon.now.sh/), but simplified for `R`! The app is built on top of a more general package that can snap images of any element in a shiny app called [snapper](https://github.com/yonicd/snapper).\n\n**Pluses**: \n\n  - Do not have to be online\n  - Do not have to go to a specific site\n  - Host locally with your own R installation\n  - Seamlessly move from source editor to image\n\n**Minuses**:\n\n  - ace (via [shinyAce](https://github.com/trestletech/shinyAce)) can manipulate less features than [carbon](https://carbon.now.sh/)\n\n## installation\n\n```r\nremotes::install_github('yonicd/carbonace')\n```\n\n## How to Run\n\n### Rstudio Addin\n\nHighlight text in source editor and then invoke the carbonace addin.\n\nThe highlighted text will be used as the initial value\n\n\n### Console\n\n```r\nlibrary(carbonace)\n```\n\n```{r}\ncarbonace()\n```\n\n\u003cimg src = 'inst/images/default_snap.png' width='50%'\u003e\n\n```r\ninit \u003c- \"family \u003c- c('Baby','Mommy','Daddy','Grandma','Lets go hunt')\n\nfor(f in family){\n  if(grepl('hunt',f)){\n    print(sprintf('%s!',f))\n  }else{\n    print(sprintf('%s shark doo doo doo doo!',f))\n  }\n}\n\n# [1] 'Baby shark doo doo doo doo!'\n# [1] 'Mommy shark doo doo doo doo!'\n# [1] 'Daddy shark doo doo doo doo!'\n# [1] 'Grandma shark doo doo doo doo!'\n# [1] 'Lets go hunt!'\"\n\ncarbonace(init = init)\n```\n\n\u003cimg src = 'inst/images/other_init_snap.png' width='50%'\u003e\n\nChanging the mode (language)\n\n\u003cimg src = 'inst/images/python_snap.png' width='50%'\u003e\n\nChanging the theme\n\n\u003cimg src = 'inst/images/chrome_snap.png' width='50%'\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyonicd%2Fcarbonace","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyonicd%2Fcarbonace","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyonicd%2Fcarbonace/lists"}