Code Monkey home page Code Monkey logo

blogr's Introduction

blogR

This is an attempt to make a static blogging platform (ala Octopress, Jekyll, etc) using R, knitr, and the markdown package. We'll see how that goes.

blogr's People

Contributors

rflight79 avatar rmflight avatar

Watchers

 avatar  avatar

blogr's Issues

including resources

Package resources should probably be in a package director inst/resources (much like rstudio/markdown currently does), and then when someone creates a new blog, this entire directory would get copied so that the person can make any necessary changes to any of the templates, css, etc.

rendering

What are the options for rendering the pages?

Templating and using RHTML seems like an interesting option, but I'm not sure how well it will work. The other way is to do something similar to the markdown package.

I like the idea of doing RHTML and knitting the page, because this allows us to do normal R function calls, and let knitr take care of it all. But, some elements in the page probably can't be modified by knitr (thinking in the header, etc).

See what happens if we put functions in the header, etc of an RHTML page.

storing old posts

how do we store old posts? Should we have an R object on disk with the date, content, original file name, and an md5 hash of the original file?

This could then be compared with the current files in the source directory, and stuff redone only if it has actually changed. This is a way off, but will probably become important as a given blog grows.

figuring out post order

When a post is generated, it's date information should be saved, and then parsed to figure out the order of the posts to display on the front page.

organization

```{r postOptions}
layout <- "post"
title <- "This is my first post!"
date <- Sys.time()
comments <- TRUE
tags <- c("first", "post")

This should also use a custom hook that takes these options and copies them to the parent environment so that they can be used to set options for the file that will be written.

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.