https://github.com/hadley/mutatr
Prototype-based mutable objects for R, based on io and javascript
https://github.com/hadley/mutatr
Last synced: 3 months ago
JSON representation
Prototype-based mutable objects for R, based on io and javascript
- Host: GitHub
- URL: https://github.com/hadley/mutatr
- Owner: hadley
- Created: 2009-08-13T14:01:02.000Z (over 16 years ago)
- Default Branch: master
- Last Pushed: 2010-07-03T20:08:14.000Z (over 15 years ago)
- Last Synced: 2025-04-15T15:09:18.111Z (9 months ago)
- Language: R
- Homepage:
- Size: 2.14 MB
- Stars: 13
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- Changelog: CHANGELOG
Awesome Lists containing this project
README
This is a prototype-based programming package for R, heavily inspired by [io](http://iolanguage.com/) 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