-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstart_R
56 lines (43 loc) · 1020 Bytes
/
start_R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#run from within examples/r
source("mysys.R")
source("tymer.R")
html("readme.html")
ls()
cat("link for movie: https://tinyurl.com/au6neeyn")
# start one of the slide shows:
# imbase("bagoftasks_R/bagoftasks_R")
# imbase("stoma_R/stoma_R")
# imbase("Rstuff/Rstuff")
imbase("Rstuff/Rstuff")
z<-function(j) {
if (missing(j)) {
nextim() }
else {
nextim(j)
}
}
srun("-n 8 hostname")
sys("srun -n 8 hostname")
srun("-n 8 ./bcast.R > out.dat")
sys("cat out.dat")
x<-sys_vec("cat out.dat")
for (i in 1:length(x)) { print(x[i])}
srun('-n 4 R -q --no-save -e """
library(\'Rmpi\')
myid <- mpi.comm.rank(comm=0)
sprintf(\'myid= %d on %s\',myid,mpi.get.processor.name())
mpi.finalize()"""
')
z()
#srun("-n 4 ./bot.R")
library("png")
pp <- readPNG("laser/l_198.png")
plot.new()
rasterImage(pp,0,0,1,1)
pp <- readPNG("laser/l_199.png")
plot.new()
rasterImage(pp,0,0,1,1)
source("mysys.R")
source("tymer.R")
image("laser/l_199.png")
cat("link for movie: https://tinyurl.com/au6neeyn")