Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Prototype-based mutable objects for R, based on io and javascript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
R
demos
man
tests
.gitignore
CHANGELOG
DESCRIPTION
NAMESPACE
readme.md

readme.md

This is a prototype-based programming package for R, heavily inspired by io and javascript.

To do

  • Implement deeper clone that calls clone/init all the way down

Ideas for documentation

With roxygen, add a doclet that recognises @class (or @ioclass). This would add an alias so that class?method (internally converted to "class-method") would work. This requires changes to roxygen so that it parses functions defined inside other functions.

Alternatively, documentation could be generated purely with proto. This would probably involve defining some doc function that takes a roxygen tagged doc string and adds it to the specified function. Yet another approach would be to parse do blocks, extract comments, use internal roxygen functions to parse and expose.

Other ideas

  • Create new and inherit methods to illustrate how prototype based programming can be used to create a regular class based system
Something went wrong with that request. Please try again.