Download Package `runjags`

Transcript
xgrid.run
units
show.units
33
either missing, in which case a sensible time unit is chosen automatically, or one
of ’s’, ’m’, ’h’, ’d’, ’w’, ’y’ to force a specific unit. Default NA.
if TRUE, then the time is returned with units, if FALSE then just an integer is
returned. Default TRUE.
Value
A time measurement, with or without units.
Author(s)
Matthew Denwood <[email protected]>
See Also
Sys.time
Examples
# time how long it takes to complete a task:
pre.time <- Sys.time()
for (i in 1:10000000) hold <- exp(100)
post.time <- Sys.time()
timestring(pre.time, post.time)
# PROCESS TO TIME
# Convert 4687 seconds into hours:
timestring(4687, units=’hours’, show.units=FALSE)
xgrid.run
Remote execution of user-specified R functions on Apple Xgrid distributed computing clusters
Description
Allows arbitrary R code to be executed on Apple Xgrid distributed computing clusters and the
results returned to the R session of the user. Jobs can either be run synchronously (the process will
wait for the model to complete before returning the results) or asynchronously (the process will
terminate on submission of the job and results are retrieved at a later time). Access to an Xgrid
cluster with R (along with all packages required by the function) installed is required. Due to the
dependance on Xgrid software to perform the underlying submission and retrieval of jobs, these
functions can only be used on machines running Mac OS X.
The two utility functions xgrid.jobs and xgrid.delete allow the currently running jobs to be examined
and deleted from inside R.
*Note* Apple has discontinued Xgrid from Mac OS 10.8 onwards, so future development and
testing of these functions will be extremely limited