Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install R examples while installing Processing.R mode #48

Closed
jeremydouglass opened this issue May 12, 2017 · 2 comments
Closed

Install R examples while installing Processing.R mode #48

jeremydouglass opened this issue May 12, 2017 · 2 comments

Comments

@jeremydouglass
Copy link
Member

jeremydouglass commented May 12, 2017

Currently, other modes (like p5.js, Processing.py, etc.) package their examples with the mode in an examples subdirectory:

/Users/username/Documents/Processing/modes/p5jsMode/examples
/Users/username/Documents/Processing/modes/PythonMode/examples
etc.

This method of distributing mode examples fits with the general library guidelines:

Examples. Users tend to learn best from examples, therefore examples are important for a library release. It is highly recommended to support your library with various sample programs to demonstrate the use and potential of the library.
https://github.com/processing/processing/wiki/Library-Guidelines

At present, building and installing the Processing.R mode doesn't install the examples -- and creating an examples folder with the files is not enough for them to appear in the PDE "Processing.R Examples" menu of PDE after opening a new Processing.R Sketch. I haven't yet looked into whether this is:

  1. a file-type filter problem (.R vs .pde vs. .pyde etc.)
  2. a configuration that should be compiled into RLangMode.jar
  3. something else

I'm currently able to test all of the example sketches manually -- very nice 3d-cube.R demo, by the way -- but if installing examples with the mode is fixed then it will be extremely easy for testers and community members to grab the latest Processing.R mode/examples from github and try them out in PDE. That should create more and higher quality feedback, help, and documentation.

If this is at all difficult -- e.g. it would require changes to Processing core beyond the scope of the mode -- another potential mechanism for distributing the Processing.R examples is to install them into a separate Example package using a properties file:

@jeremydouglass jeremydouglass changed the title Package R examples with mode Install R examples while installing Processing.R mode May 12, 2017
@gaocegege
Copy link
Member

That is awesome. I am not aware of the difficulty about building and installing, since I have the development environment in my laptop. I think the issue should be in high priority. 👍

@gaocegege
Copy link
Member

FYI, the issue has been closed by #57

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants