1 Commits

Author SHA1 Message Date
junikimm717 2e498394a2 Fixed windows mclapply bug 3 years ago
  1. 5
      README.md
  2. 3
      src/script.def.R

5
README.md

@ -29,3 +29,8 @@ isotopes to be searched for.
If `verbose.enable` is set to `TRUE`, files of the form `(fragment number).txt`
containing the `pattern.search` output will be printed to the directory
specified in `verbose.outputdir`, assuming the directory already exists.
## Additional Notes
As windows does not allow forking, the number of cores used on it will be
constrained to 1.

3
src/script.def.R

@ -79,6 +79,9 @@ fragments <- max(table[, columns.spectra])
# set use_cores to safe amount
use_cores = min(use_cores, detectCores() - 1)
if (.Platform$OS.type == "windows") {
use_cores=1L
}
# lower bound of indices per fragment
# (sorting guarantees that data points of same fragment are together)

Loading…
Cancel
Save