caller.name
returns the name of the calling function n
frames up (i.e., for n
equal to 2, the caller of the function that calls this one).
If called interactively, returns character()
.
msgout
is a variation of message
in base R.
It writes output to stdout
instead of stderr
and has a default setting of appendLF
of FALSE.
This function is used throughout CHNOSZ to generate informative messages, that will show up both in an interactive session and in Sweave
output, but that are suppressed while running the test_that
testing scripts to make it easier to watch their progress.
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
.