Skip to content

Commit 4cfaac5

Browse files
committed
update readme
1 parent 221c3ee commit 4cfaac5

File tree

4 files changed

+16
-13
lines changed

4 files changed

+16
-13
lines changed

LICENSE

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
The MIT License (MIT)
2+
Copyright (c) 2016 Ce Gao
3+
4+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
5+
6+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
7+
8+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

readme.md

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,3 @@ processing$line(posAX, posAY, posBX, posBY)
3131
The output is:
3232

3333
<img src="./docs/img/demo.png" height="200">
34-
35-
## MIT License
36-
37-
Copyright (c) 2016 Ce Gao
38-
39-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
40-
41-
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
42-
43-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

src/rprocessing/RLangPApplet.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ public void prePassCode() {
5757
if (source.getClass().equals(ExpressionVector.class)) {
5858
ExpressionVector ev = (ExpressionVector) source;
5959
for (int i = 0; i < ev.length(); ++i) {
60+
System.out.println(ev.get(i).getClass());
6061
if (ev.get(i).getClass().equals(FunctionCall.class)) {
6162
this.renjinEngine.getTopLevelContext().evaluate(ev.get(i),
6263
this.renjinEngine.getTopLevelContext().getEnvironment());
@@ -66,9 +67,9 @@ public void prePassCode() {
6667
}
6768

6869
/**
69-
* Detect the mode.
70-
* After: prePassCode()
71-
*/
70+
* Detect the mode.
71+
* After: prePassCode()
72+
*/
7273
private Mode detectMode() {
7374
if (isActiveMode()) {
7475
if (isMixMode()) {

src/rprocessing/Runner.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,14 @@ public synchronized static void runSketchBlocking(final RunnableSketch sketch,
6767
if (engine == null) {
6868
throw new RuntimeException("Renjin Script Engine not found on the classpath.");
6969
}
70+
System.out.println(1);
7071
RLangPApplet rp = new RLangPApplet(engine, sketch.getMainCode());
72+
System.out.println(1);
7173
rp.AddPAppletToRContext();
7274

75+
System.out.println(rp);
7376
try {
77+
engine.eval("print(processing)");
7478
engine.eval(CORE_TEXT);
7579
// Run Sketch.
7680
PApplet.runSketch(args, rp);

0 commit comments

Comments
 (0)