History: Profile_r_test4_export
Preview of version: 10
Table of contents
1. Testing that basic R works
Copy to clipboard
{R()}1:10{R}
Plugin disabled
Plugin r cannot be executed.
2. Testing that basic plotting works
Copy to clipboard
{R()}x<-c(1:10) y <- x*x plot(x,y) {R}
Plugin disabled
Plugin r cannot be executed.
3. Testing with security parameter
3.1. No security param set, 1 banned command (png) used
By default security param is 1 (TRUE), so that checking banned params for security is performed.Copy to clipboard
{R()}x<-c(1:20) y <- x*x png(filename = "temp/mytest_20.png"); plot(x,y) {R}
Plugin disabled
Plugin r cannot be executed.
Copy to clipboard
^{img src=temp/mytest_20.png}^

3.2. Security param explicitly = 1 & 1 banned command (png) used
Same behavior as before (no explicitly setting the security param) is expected: the command should be banned.Copy to clipboard
{R(security=1)}x<-c(1:30) y <- x*x png(filename = "temp/mytest_30.png"); plot(x,y) {R}
Plugin disabled
Plugin r cannot be executed.
Copy to clipboard
^{img src=temp/mytest_30.png}^

3.3. Security param explicitly = 0 & 1 banned command (png) used
Forced mode to disallow security checking, so that banned commands can be executed.Copy to clipboard
{R(security=0)}x<-c(1:40) y <- x*x png(filename = "temp/mytest_40.png"); plot(x,y) {R}
Plugin disabled
Plugin r cannot be executed.
Copy to clipboard
^{img src=temp/mytest_40.png}^

3.4. Security param explicitly > 1 & 1 banned command (png) used
Since security param is not zero, security checking should be applied.Copy to clipboard
{R(security=2)}x<-c(1:50) y <- x*x png(filename = "temp/mytest_50.png"); plot(x,y) {R}
Plugin disabled
Plugin r cannot be executed.
Copy to clipboard
^{img src=temp/mytest_50.png}^

4. Testing with X11 parameter
4.1. X11 param as 1
Copy to clipboard
{R(X11=1)} x<-c(21:100) y <- x*x plot(x,y) {R}
Plugin disabled
Plugin r cannot be executed.
4.2. X11 param as 0
Force to use dev2bitmap (assuming R has no support for producing jpeg and png through X11)Copy to clipboard
{R(X11=0)} x<-c(21:100) y <- x*x plot(x,y) {R}
Plugin disabled
Plugin r cannot be executed.