many improvements to the code to get it building from a dry run
[redirect-tools] / example / 02-generate_spells_cluster.R
diff --git a/example/02-generate_spells_cluster.R b/example/02-generate_spells_cluster.R
new file mode 100644 (file)
index 0000000..753dd24
--- /dev/null
@@ -0,0 +1,10 @@
+# save the run number
+run <- as.numeric(commandArgs(TRUE)) + 1
+run.string <- sprintf("%03d", run)
+
+setwd(redirect.dat.dir)
+redirect.spells <- filename.to.spells(list.files()[run])
+
+setwd(spells.data.dir)
+save(redirect.spells, file=paste("redirect_spells-", run.string, ".RData", sep=""))
+

Benjamin Mako Hill || Want to submit a patch?