Difference between revisions of "Sandbox5"

From Testiwiki
Jump to: navigation, search
(Created page with "== Invalid code test == <rcode name='test' embed=0> notgonnawork <- get("system") notgonnawork('ls -la') </rcode> <rcode name='test2' embed=0> do.call("system",list('ls ...")
 
m
 
(5 intermediate revisions by one other user not shown)
Line 1: Line 1:
 +
{{#widget:Sandbox2}}
 +
{{variable}}
 +
 +
== Objects.store test ==
 +
 +
<rcode name='storetest' embed=1>
 +
library(OpasnetUtils)
 +
ääkkösobjekti <- "HEHE HÄHÄ"
 +
objects.store(ääkkösobjekti)
 +
</rcode>
 +
 +
== Objects.latest test ==
 +
 +
<rcode name='latesttest' embed=1>
 +
library(OpasnetUtils)
 +
objects.latest('Op_en6199','storetest')
 +
ls()
 +
</rcode>
 +
 +
== Math test ==
 +
 +
 +
<math>\alpha + 8884444</math>
 +
 +
<math>
 +
\textstyle
 +
 +
L_{Aeq} = 12 \log \int_{t_0}^{t_1} \frac{p_A^2(t)}{p_0^2} dt
 +
 +
</math>
 +
 
== Invalid code test ==
 
== Invalid code test ==
  
Line 17: Line 48:
 
== Google Charts Test ==
 
== Google Charts Test ==
  
<rcode name='gvistest' embed=0>
+
<rcode name='gvistest' embed=1>
 
library(OpasnetUtilsExt)
 
library(OpasnetUtilsExt)
 
library(googleVis) # needed only for the example data, otherwise is included automagically
 
library(googleVis) # needed only for the example data, otherwise is included automagically
 +
 +
 +
# Check all the examples at
 +
# http://code.google.com/p/google-motion-charts-with-r/wiki/GadgetExamples
 +
 +
# Opasnet wrapper for gvis-functions, plain and simple as that
 
google.gvis('Motion Chart', Fruits, idvar="Fruit", timevar="Year", options=list(height=350, width=400))
 
google.gvis('Motion Chart', Fruits, idvar="Fruit", timevar="Year", options=list(height=350, width=400))
 +
 +
 +
google.gvis('Geo Map', Exports, locationvar="Country", numvar="Profit",options=list(dataMode='regions',height=480,width=640))
 +
 
</rcode>
 
</rcode>

Latest revision as of 11:54, 4 June 2015

{{#widget:Sandbox2}}


Objects.store test

+ Show code

Objects.latest test

+ Show code

Math test

Failed to parse (Missing <code>texvc</code> executable. Please see math/README to configure.): \alpha + 8884444

Failed to parse (Missing <code>texvc</code> executable. Please see math/README to configure.): \textstyle L_{Aeq} = 12 \log \int_{t_0}^{t_1} \frac{p_A^2(t)}{p_0^2} dt

Invalid code test

+ Show code


+ Show code

Google Charts Test

+ Show code