Last active
          December 21, 2015 23:09 
        
      - 
      
 - 
        
Save aaronpuchert/6380536 to your computer and use it in GitHub Desktop.  
Revisions
- 
        
aaronpuchert revised this gist
Aug 29, 2013 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -3,7 +3,7 @@ require("parallel") # do not start in RStudio if (Sys.getenv("RSTUDIO_USER_IDENTITY") == "" && !file.exists(".cluster")) { cat(Sys.getpid(), file=".cluster") Cluster <- makeCluster(detectCores()) }  - 
        
aaronpuchert renamed this gist
Aug 29, 2013 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. - 
        
aaronpuchert created this gist
Aug 29, 2013 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,16 @@ require("utils") require("parallel") # do not start in RStudio if (Sys.getenv("RSTUDIO_USER_IDENTITY") == "" && !file.exists(".cluster")) { cat(Sys.getpid(), file=".cluster") Cluster <- makeCluster(detectCores()) } .First <- function() source("src/main.r") # should load all other sources .Last <- function() { if (exists("Cluster")) { stopCluster(Cluster) file.remove(".cluster") } }