/usr/share/doc/littler/tests/test1.R is in littler 0.1.5-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | #!../r
cat("hello world!\n");
for (i in 1:10){
cat("i is",i,"\n");
}
foo <- function(x=1){
if (x == 1){
cat("x is 1\n");
} else {
cat("x is",x,":NOT 1\n");
}
}
foo(2)
foo()
|