Comments (14)
All tasks in Evaluation 2 are done 🎉
from processing.r.
For reference, this is how library Processing.py / Jython handles importing native Processing(Java) libraries.
https://github.com/jdf/processing.py/blob/master/runtime/src/jycessing/LibraryImporter.java
It looks quite complex -- I believe because a lot seems to be about auto-discovering non-jar resources.
The renjin documentation starting point for import()
seems to be Ch5, p27: Importing Java Classes Into R Code:
https://media.readthedocs.org/pdf/renjin/latest/renjin.pdf#page31
I wonder if some very widely used Processing libraries are already importable and already work out-of-the-box, without changes to the renjin import mechanism.
from processing.r.
Per our discussion: an example of a popular 3rd-party Processing library:
Built-in libraries to consider starting with for testing:
- https://processing.org/reference/libraries/video/index.html
- https://processing.org/reference/libraries/pdf/index.html
- https://processing.org/reference/libraries/serial/index.html
from processing.r.
The ad-hoc code has been fixed in #137
from processing.r.
We need to test more libraries to test if the feature works well
from processing.r.
Now Processing.R supports libraries in PDE, for example, https://github.com/jdf/peasycam.
But it fails in Runner because of the libraries discovery in standalone sketch.
from processing.r.
Initial library discovery work done in #133
from processing.r.
Good idea!
-
Do we have an example library sketch?
It could be the bases for a number of library sketches -- a simple example for each library. Easy to ask others to write them if there is a template. I could write a few myself. -
Is there a test sketch for the library feature?
Or would that not work with the testing setup?
from processing.r.
- I will write a example tomorrow.
- Libraries are different with each other, I am afraid that it is hard to develop a framework to test all libraries just like e2etest does.
from processing.r.
I agree that Processing.R does not need a library testing framework -- that too complex to be useful, and also out of scope!
Instead, I was wondering if, for example, the peasycam demo on Welcome Issue #142 could be added to test documentation for importLibrary(). Then as long as we had generated the target screenshot the test it would pass as long as peasycam was importing correctly, and fail if it wasn't. Not library specific testing, just an e2etest sanity check on importLibrary(). An issue would pre-installing peasycam into the CI environment to make it work.
settings <- function() {
importLibrary("peasycam")
size(200, 200, P3D)
}
setup <- function() {
cam = PeasyCam$new(processing, 100)
cam$setMinimumDistance(50)
cam$setMaximumDistance(500)
}
draw <- function() {
rotateX(-.5)
rotateY(-.5)
background(0)
fill(255, 0, 0)
box(30)
pushMatrix()
translate(0, 0, 20)
fill(0, 0, 255)
box(5)
popMatrix()
}
from processing.r.
Oh It is a good idea! But there is one thing:
We could not use libraries in Runner now, because of the StandaloneSketch.
from processing.r.
because of the StandaloneSketch
Can you remind me why StandaloneSketch is a problem for importLibrary()?
from processing.r.
StandaloneSketch doesn't implement the logic about the path to libraries. It could not find the libraries.
from processing.r.
Wonderful. Let's schedule a meeting to check in and discuss before E2.
from processing.r.
Related Issues (20)
- Docs: Tutorials do not list author
- Docs: resolve laDefense.jpg HOT 5
- Support PVector
- Support Table in R HOT 1
- Add GitMate Support
- R Style API HOT 1
- [maintenance] Transfer the project to processing-r and invite Jeremy to be the first official maintainer HOT 2
- Processing.R mode not detected in contributions manager HOT 5
- Build instructions HOT 13
- Update readme.md badge stack HOT 3
- Update windows build versions (processing, ant)
- Transfer codacy integration to codacy org
- Remove RLangMode.zip from repo HOT 1
- Add ribbon nav connecting other Processing sites
- get(), set() -- cast double to int
- Getting this running with Processing 4.0 HOT 5
- example SineWave fails with SketchException
- example He_Mesh/demo incorrectly packaged, fails to run
- processing.R not compatible with R version 3.6.3
- PDE forgets first object declaration in consecutive object declarations in PDE 4.3 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from processing.r.