]> git.donarmstrong.com Git - don.git/commitdiff
add plot to test sweavealike
authorDon Armstrong <don@donarmstrong.com>
Thu, 22 Mar 2012 20:03:41 +0000 (13:03 -0700)
committerDon Armstrong <don@donarmstrong.com>
Thu, 22 Mar 2012 20:03:41 +0000 (13:03 -0700)
r/learning_r/variables_and_objects.mdwn

index 15e2a3c52729e4d50311d3e00615c8cf8f0ecec7..064b4d04c21604ea2d1f4be8d4c66d8fe3aca7fb 100644 (file)
@@ -7,11 +7,15 @@ tests of my
 plugin for IkiWiki.
 
 
 plugin for IkiWiki.
 
 
-[[!sweavealike verbatim=1 code="""
+[[!sweavealike echo=1 code="""
 a <- 1
 a <- a + 10
 print(a)
 """]]
 
 a <- 1
 a <- a + 10
 print(a)
 """]]
 
+[[!sweavealike figure=1 echo=1 results="hide" code="""
+plot(1:10,(1:10)^2,xlab="x",ylab="x^2",main="Example figure")
+"""]
+
 
 testing
 
 testing