Skip to content

Commit

Permalink
add gc to readMSData2 - (hopefully) closes #151
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurentGatto committed Aug 15, 2016
1 parent a7f91ae commit 3db3831
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/readMSData2.R
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,10 @@ readMSData2 <- function(files,
centroided = rep(as.logical(NA), nrow(fdData)),
smoothed = rep(as.logical(smoothed.), nrow(fdData)),
fdData, stringsAsFactors = FALSE)
featureDataList <- c(featureDataList, list(fdData))
featureDataList <- c(featureDataList, list(fdData))
mzR::close(msdata)
rm(msdata)
gc()
}
## new in version 1.9.8
lockEnvironment(assaydata, bindings = TRUE)
Expand Down

0 comments on commit 3db3831

Please sign in to comment.