[Pomp-commits] r663 - in pkg: . inst/data-R

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Mon Apr 16 16:03:45 CEST 2012


Author: kingaa
Date: 2012-04-16 16:03:44 +0200 (Mon, 16 Apr 2012)
New Revision: 663

Added:
   pkg/inst/data-R/Makefile
   pkg/inst/data-R/make.R
Modified:
   pkg/.Rbuildignore
Log:
- add make files in 'inst/data-R'


Modified: pkg/.Rbuildignore
===================================================================
--- pkg/.Rbuildignore	2012-04-16 14:00:20 UTC (rev 662)
+++ pkg/.Rbuildignore	2012-04-16 14:03:44 UTC (rev 663)
@@ -1,4 +1,6 @@
 inst/doc/Makefile
+inst/data-R/Makefile
+inst/data-R/make.R
 inst/doc/(.+?)\.bst$
 inst/doc/(.+?)\.R$
 inst/doc/(.+?)\.png$

Added: pkg/inst/data-R/Makefile
===================================================================
--- pkg/inst/data-R/Makefile	                        (rev 0)
+++ pkg/inst/data-R/Makefile	2012-04-16 14:03:44 UTC (rev 663)
@@ -0,0 +1,3 @@
+all: 
+	Rscript --vanilla make.R
+	mv *.rda ../../data

Added: pkg/inst/data-R/make.R
===================================================================
--- pkg/inst/data-R/make.R	                        (rev 0)
+++ pkg/inst/data-R/make.R	2012-04-16 14:03:44 UTC (rev 663)
@@ -0,0 +1,5 @@
+examples <- c("sir","ou2","rw2","verhulst","dacca","ricker","gompertz","blowflies")
+
+for (ex in examples) {
+  source(file=paste(ex,"R",sep="."))
+}



More information about the pomp-commits mailing list