Giter VIP home page Giter VIP logo

schamberlain.github.com's Introduction

Recology

Modified from Erjjones.Github.com (thanks!).

Page made with Jekyll and Twitter Bootstrap.

Workflow for posting on this blog:

  • Fork the repo.
  • Write a post in a .Rmd file (see examples in the /_drafts folder). Take a look at one of the recent examples in the /_drafts folder, and notice that I just put the yaml heading stuff in the post so that I don't have to add it later - it should all be ready to go after running the next step.
  • When done writing the post, use the function knitpost (see below), which prepares the .md file and outputs any image files needed. You can use it by installing a repo I have on github (sacbox [like sandbox, which many people have for their own personal stuff, but just different name]: https://github.com/SChamberlain/sacbox/blob/master/R/knitpost.r). You can copy the .md file that knitpost outputs into the /_posts folder, and any images to the /img folder.
    • When running knitpost, I run something like the following for a post: knitpost("/Users/ScottMac/github/SChamberlain/schamberlain.github.com/_drafts/2012-10-08-rgbif-newfxns.Rmd")
  • That should be it. Try running jekyll --server in the terminal to see if it worked.
  • Submit a pull request.

-- This is what knitpost looks like:

knitpost <- function(input, base.url = "/") 
{
	opts_knit$set(base.url = base.url)
	fig.path <- paste0("img/", sub(".Rmd$", "", basename(input)), "/")
	opts_chunk$set(fig.path = fig.path)
	opts_chunk$set(fig.cap = "center")
	render_jekyll()
	knit(input, envir = parent.frame())
}

schamberlain.github.com's People

Contributors

sckott avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.