-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopencpu.demo-Ex.R
More file actions
82 lines (60 loc) · 1.73 KB
/
Copy pathopencpu.demo-Ex.R
File metadata and controls
82 lines (60 loc) · 1.73 KB
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
pkgname <- "opencpu.demo"
source(file.path(R.home("share"), "R", "examples-header.R"))
options(warn = 1)
library('opencpu.demo')
assign(".oldSearch", search(), pos = 'CheckExEnv')
cleanEx()
nameEx("liveplot")
### * liveplot
flush(stderr()); flush(stdout())
### Name: liveplot
### Title: Plot live stock data.
### Aliases: liveplot
### ** Examples
## Not run:
##D liveplot("GOOG")
##D # Is equivalent to e.g:
##D # http://beta1.opencpu.org/R/call/opencpu.demo/liveplot/png?ticker="GOOG"
##D # http://beta1.opencpu.org/R/call/opencpu.demo/liveplot/pdf?ticker="GOOG"
##D # http://beta1.opencpu.org/R/call/opencpu.demo/liveplot/png?ticker="YHOO"
##D # http://beta1.opencpu.org/R/call/opencpu.demo/liveplot/png?ticker="YHOO"&!width=1000&!height=800
## End(Not run)
cleanEx()
nameEx("nabel")
### * nabel
flush(stderr()); flush(stdout())
### Name: nabel
### Title: Plot NABEL data
### Aliases: nabel
### ** Examples
## plot daily mean NO2 concentrations at three stations
## from 1 January 2011 up to today
## Not run:
##D nabel("no2",
##D c("Bern", "Basel", "Lausanne"),
##D "daily",
##D "free",
##D "2011-01-01",
##D Sys.Date())
## End(Not run)
cleanEx()
nameEx("testplothandlers")
### * testplothandlers
flush(stderr()); flush(stdout())
### Name: testplothandlers
### Title: Test opencpu plotting
### Aliases: testplothandlers
### ** Examples
testplothandlers(); #should generate six plots
# Equivalent to:
# http://beta1.opencpu.org/R/call/opencpu.demo/testplothandlers/save
### * <FOOTER>
###
cat("Time elapsed: ", proc.time() - get("ptime", pos = 'CheckExEnv'),"\n")
grDevices::dev.off()
###
### Local variables: ***
### mode: outline-minor ***
### outline-regexp: "\\(> \\)?### [*]+" ***
### End: ***
quit('no')