{"id":14068942,"url":"https://github.com/stevecondylios/rawr","last_synced_at":"2025-05-01T03:31:03.730Z","repository":{"id":100935316,"uuid":"205609858","full_name":"stevecondylios/rawr","owner":"stevecondylios","description":"Extract raw R code directly from webpages, including Github, Kaggle, Stack Overflow, and sites made using Blogdown. ","archived":false,"fork":false,"pushed_at":"2021-10-18T16:38:43.000Z","size":5436,"stargazers_count":15,"open_issues_count":7,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-06T08:24:43.067Z","etag":null,"topics":["blogdown-sites","kaggle","kaggle-notebook","medium","r","r-bloggers","rawr","stackoverflow","towards-data-science"],"latest_commit_sha":null,"homepage":"https://stevecondylios.github.io/rawr/","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/stevecondylios.png","metadata":{"files":{"readme":"README.Rmd","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":"2019-09-01T00:16:54.000Z","updated_at":"2022-01-08T02:57:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"f6df72e0-a328-4fa4-83b9-d6e34efe3fb5","html_url":"https://github.com/stevecondylios/rawr","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/stevecondylios%2Frawr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stevecondylios%2Frawr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stevecondylios%2Frawr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stevecondylios%2Frawr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stevecondylios","download_url":"https://codeload.github.com/stevecondylios/rawr/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251817952,"owners_count":21648841,"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":["blogdown-sites","kaggle","kaggle-notebook","medium","r","r-bloggers","rawr","stackoverflow","towards-data-science"],"created_at":"2024-08-13T07:06:29.886Z","updated_at":"2025-05-01T03:31:03.250Z","avatar_url":"https://github.com/stevecondylios.png","language":"R","funding_links":[],"categories":["R"],"sub_categories":[],"readme":"\n---\noutput: github_document\n---\n  \n```{r setup, include=FALSE}\nknitr::opts_chunk$set(echo = TRUE)\n```\n\n# rawr \u003ca href='https://github.com/stevecondylios/rawr'\u003e\u003cimg src='man/figures/rawr.png' align=\"right\" height=\"139\" /\u003e\u003c/a\u003e\n\n[![CRAN status](https://www.r-pkg.org/badges/version/rawr)](https://cran.r-project.org/package=rawr)\n[![Travis build status](https://travis-ci.org/stevecondylios/rawr.svg?branch=master)](https://travis-ci.org/stevecondylios/rawr)\n\u003c!-- badges: end --\u003e\n\n`rawr` helps you quickly grab R code from the web, either straight to an R file, or to your clipboard. This avoids tedious copy/pasting of code from browser to IDE.\n\n### R Code from Popular R websites\n\nRetrieve R code from a website to your clipboard with `rawr_to_clip()`, here are some examples:\n\n```R\n# install.packages(\"rawr\")\nlibrary(rawr)\n\n# CRAN vignettes\nrawr_to_clip(\"https://cran.r-project.org/web/packages/tidytext/vignettes/tidytext.html\")\n\n# Stack Overflow\nrawr_to_clip(\"https://stackoverflow.com/questions/58248102/date-input-dt-r-shiny\")\n\n# Kaggle\nrawr_to_clip(\"https://www.kaggle.com/vrtjso/mercari-eda-more-info-than-you-can-imagine\")\n\n# GitHub \nrawr_to_clip(\"https://github.com/hadley/vis-eda/blob/master/travel.R\")\n\n# Jupyter Notebook on GitHub\nrawr_to_clip(\"https://github.com/tulip-lab/sit742/blob/master/Jupyter/SIT742P10B-MLSystem.ipynb\")\n\n# Blogdown sites\nrawr_to_clip(\"https://www.jtimm.net/2019/04/14/lexical-change-procrustes/\")\n\n``` \n\n\n### Other functionality\n\nWrite output to a temp file\n\n```R\nrawr(\"https://www.kaggle.com/vrtjso/mercari-eda-more-info-than-you-can-imagine\", to_file=T)\n```\n\nWrite output to a specific file\n\n```R\nrawr(\"https://www.kaggle.com/vrtjso/mercari-eda-more-info-than-you-can-imagine\", file_path=\"mynewfile.R\")\n```\n\n\n\n# Issues and Feature Requests\n\nWhen reporting an issue, please include:\n\n* Example code that reproduces the **observed** behavior.\n* An explanation of what the **expected** behavior is.\n* A specific url you're attempting to retrieve R code from (if that's what your issue concerns)\n\n\nFor feature requests, raise an issue with the following:\n\n* The desired functionality\n* Example inputs and desired output\n\n\n\n# Pull Requests\n\nPull requests are welcomed. Before doing so, please create an issue or email me with your idea.  \n\nAny new functions should follow the conventions established by the the package's existing functions. Please ensure\n\n* Functions are sensibly named\n* The __intent__ of the contribution is clear\n* At least one example is provided in the documentation\n\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstevecondylios%2Frawr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstevecondylios%2Frawr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstevecondylios%2Frawr/lists"}