util.program: Functions for Various Programming Tasks

Description Usage Arguments Details See Also

Description

Get name of calling function; send messages to standard output; use multiple processors if parallel package is loaded.

Usage

1
  palply(varlist, X, FUN, ...)

Arguments

...

equivalent to the same argument in parLapply

varlist

character, names of variables to export using clusterExport

X

vector, argument for lapply or parLapply

FUN

function, argument for lapply or parLapply

Details

palply is a wrapper function to run parLapply if length of X > thermo$opt$paramin and multiple cores are available, otherwise it runs lapply. Note that parLapply is called with methods set to FALSE. If lots of package startup messages are created when running makeCluster (which is called by palply), it can probably be stopped by adding a test for interactive sessions around any library commands in the Rprofile.

See Also

read.fasta, count.aa, affinity, equil.boltzmann and equil.reaction for functions that use palply. Tests are in ‘tests/test-util.program.R’, and a “real life” application is in ‘demos/density.R’.



Search within the CHNOSZ package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.