]> projects.mako.cc - redirect-tools/commitdiff
fix code based on fail test run
authorBenjamin Mako Hill <mako@atdot.cc>
Tue, 24 Jun 2014 21:51:34 +0000 (14:51 -0700)
committerBenjamin Mako Hill <mako@atdot.cc>
Tue, 24 Jun 2014 21:51:34 +0000 (14:51 -0700)
02-generate_spells.R

index dc5850b5775b314ed9602d3695bc680ae498fc77..c2a21884025d363a126903e2a6c7ff91ed9fb3a3 100644 (file)
@@ -1,9 +1,12 @@
 source("redirect_tools.R")
 
 source("redirect_tools.R")
 
+cur.dir <- getwd()
+
 # save the run number
 setwd(redirect.data.dir)
 redirect.spells <- filename.to.spells(list.files())
 
 # save the run number
 setwd(redirect.data.dir)
 redirect.spells <- filename.to.spells(list.files())
 
+setwd(cur.dir)
 setwd(spells.data.dir)
 save(redirect.spells, file="redirect_spells.RData")
 
 setwd(spells.data.dir)
 save(redirect.spells, file="redirect_spells.RData")
 

Benjamin Mako Hill || Want to submit a patch?