
- #LOAD R RMARKDOWN GITHUB PORTFOLIO FOR FREE#
- #LOAD R RMARKDOWN GITHUB PORTFOLIO HOW TO#
- #LOAD R RMARKDOWN GITHUB PORTFOLIO INSTALL#
Installing R and RStudio should be fairly straightforward. If you want some more details or need instructions, see this page (which is part of an online course I teach). If you are new to GitHub, you need to create an account.
#LOAD R RMARKDOWN GITHUB PORTFOLIO HOW TO#
LOAD RMARKDOWN GITHUB PORTFOLIO HOW TOĪt some point, it would also be useful to learn more about what Git/GitHub is and how to use it, but for this purpose you actually don’t need to know much. If you want to read a bit about Git/GitHub, see e.g. this document, which I wrote for one of my courses. There are many ways you can interact with Git/GitHub. I mostly use the fairly user-friendly and full-featured Gitkraken.
#LOAD R RMARKDOWN GITHUB PORTFOLIO INSTALL#
LOAD RMARKDOWN GITHUB PORTFOLIO INSTALL. This is shown in a simple example below that queries the WHO API to get the number of cases of one of the forms of sleeping sickness in 2013. This then means that any R plot is automatically generated, saved as a png and it’s address is written into the md document so that the plot is displayed in the blog. Thus in the root of my site includes these 3 folders. I set this up so that any plots are put into a third folder. Jason’s function searches a folder that you specify for. Instead I just run an R function rmd2md which is much the same as Jason’s with some edits to paths and jekyll rendering. This was partly because I’m running windows and I couldn’t run the shell scripts that they created. I had to tweak them both, the relative paths of figures was my main stumbling block. I followed inspiration from Jason Bryer and Jon Zelner. Setting up so that I can write the posts in RMarkdown File, New project, Version control, Clone git. I cloned the Github repository for my site using RStudio : enabling editing of the site from RStudio Thanks to Jan Gorecki whose answer on stackoverflow pointed me in this direction and I’ve copied some extra features like the Links and Index pages from his site. What attarcted me to it was that it takes a matter of minutes to set up initially and if you decide you don’t like it you can just delete. I used Barry Clarks amazing Jekyll-Now repository which you can fork directly from Github and start editing to customize. How I got here (steps) creating Jekyll site on Github I manage the site as an RStudio project, enabling me to edit text, keep track of files and interact with Git all from one interface. I simply edit files locally, then commit and push to Github. The site is created using Jekyll on Github, so I didn’t need to install Jekyll or Ruby. #LOAD R RMARKDOWN GITHUB PORTFOLIO FOR FREE#
The blog is hosted for free on Github (you get one free personal site). Rmd) and run an R function to convert them to markdown (. Now I have this blog set up so that I can write all of the posts (including this one) in RMarkdown (. A brief search revealed that was not straightforward and that Jekyll was the way to go. Initially I tried seeing if I could create posts using RMarkdown and put them into that wordpress blog. I have a wordpress site elsewhere that someone helped me set up a couple of years ago with a blog that I’ve never used. I had used Rmarkdown and knitr before so wanted to use them. I wanted to be able to write about R related things without having to copy and paste code, figures or files. push to Github where Jekyll renders the markdown.In the first post of this new blog I’ll outline how I’ve set the blog up.