Browse Source

Fixed windows mclapply bug

master 2e498394a2
junikimm717 3 years ago
parent
commit
2e498394a2
  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