All Projects → mkearney → rmd2jupyter

mkearney / rmd2jupyter

Licence: other
Convert Rmd (rmarkdown) to ipynb (Jupyter notebook)

Programming Languages

r
7636 projects

Projects that are alternatives of or similar to rmd2jupyter

Talks
Repository of publicly available talks by Leon Eyrich Jessen, PhD. Talks cover Data Science and R in the context of research
Stars: ✭ 16 (-5.88%)
Mutual labels:  rmarkdown, rstats
Postcards
💌 Create simple, beautiful personal websites and landing pages using only R Markdown.
Stars: ✭ 208 (+1123.53%)
Mutual labels:  rmarkdown, rstats
Rmarkdown Website Tutorial
Tutorial for creating websites w/ R Markdown
Stars: ✭ 26 (+52.94%)
Mutual labels:  rmarkdown, rstats
Markdowntemplates
✅🔻 A collection of alternate R markdown templates
Stars: ✭ 287 (+1588.24%)
Mutual labels:  rmarkdown, rstats
tikz favorites
collection of favorite TikZ graphics
Stars: ✭ 62 (+264.71%)
Mutual labels:  rmarkdown, rstats
Workflowr
Organize your project into a research website
Stars: ✭ 551 (+3141.18%)
Mutual labels:  rmarkdown, rstats
Countdown
⏲ countdown timer for R Markdown slides and HTML docs
Stars: ✭ 110 (+547.06%)
Mutual labels:  rmarkdown, rstats
Summarytools
R Package to Quickly and Neatly Summarize Data
Stars: ✭ 390 (+2194.12%)
Mutual labels:  rmarkdown, rstats
githubdashboard
#rstats github flexdashboard
Stars: ✭ 40 (+135.29%)
Mutual labels:  rmarkdown, rstats
heddlr
Bring a functional programming mindset to R Markdown document generation
Stars: ✭ 14 (-17.65%)
Mutual labels:  rmarkdown, rstats
Anicon
Animated icons for R markdown and Shiny apps
Stars: ✭ 109 (+541.18%)
Mutual labels:  rmarkdown, rstats
QuickLookR
macOS QuickLook plugin for R save(), saveRDS() & feather files
Stars: ✭ 41 (+141.18%)
Mutual labels:  rmarkdown, rstats
epoxy
Extra-strength glue engines for R Markdown and Quarto
Stars: ✭ 141 (+729.41%)
Mutual labels:  rmarkdown, rmd
rmd4sci
Rmarkdown for Scientists
Stars: ✭ 113 (+564.71%)
Mutual labels:  rmarkdown, rstats
workshops-setup cloud analytics machine
Tips and Tricks to setup a cloud machine for Analytics and Data Science with R, RStudio and Shiny Servers, Python and JupyterLab
Stars: ✭ 12 (-29.41%)
Mutual labels:  rmarkdown, rstats
dotwhisker
Dot-and-Whisker Plots of Regression Results
Stars: ✭ 51 (+200%)
Mutual labels:  rstats
layer
Create stacked tilted maps
Stars: ✭ 97 (+470.59%)
Mutual labels:  rstats
getCRUCLdata
CRU CL v. 2.0 Climatology Client for R
Stars: ✭ 17 (+0%)
Mutual labels:  rstats
rsnps
Wrapper to a number of SNP web APIs
Stars: ✭ 44 (+158.82%)
Mutual labels:  rstats
hereR
R package that provides an interface to the HERE REST APIs: Geocoder API, Routing API, Traffic API, Public Transit API and Destination Weather API. Locations and routes are returned as 'sf' objects.
Stars: ✭ 72 (+323.53%)
Mutual labels:  rstats

rmd2jupyter

Convert rmarkdown (.Rmd) files into jupyter notebooks (.ipynb).

Example

Create a .Rmd file.

rmd <- "# Module 1. Working with web APIs

## Gathering publicly available web data

The two most common ways to collect publicly available web data are (1) web scraping and (2) interacting with Application Program Interfaces (API).

## Web scraping

- A normal workflow goes something like this
    - Extract website source code, known as Extensible Markup Language (XML). XML is similar to HTML only designed for storing not displaying data.
    - Although XML trees contain elements, tags, and text, data collected via web scraping is almost always unstructred

### Web scraping in R
- I recommend the {rvest} package.

\`\`\`{r}
library(rvest)

## population statistics
population_url <- \"https://en.wikipedia.org/wiki/List_of_countries_by_population_(United_Nations)\"

## read in page
pop <- read_html(population_url)
\`\`\`"

## save as temp file
tmp <- tempfile(fileext = ".Rmd")
cat(rmd, file = tmp)

## render html
rmarkdown::render(tmp)

## output output
browseURL(gsub("\\.Rmd$", ".html", tmp))

Rmd -> html

Screen capture of output.

Rmd -> ipynb.

Now convert to an ipython notebook.

## install and load rmd2jupyter
devtools::install_github("mkearney/rmd2jupyter")
library(rmd2jupyter)

## convert
rmd2jupyter(tmp)

## open via your jupyter notebook method

Screen capture of jupyter notebook.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].