List of utilities I use often in R.


[Up] [Top]

Documentation for package ‘utilitiesR’ version 1.8.3

Help Pages

utilities-package Utilities package in R.
createFilename create a file path based off a given format.
dir.browse Text-based interactive directory selection.
DWE *D*isplays a command, *W*aits, and *E*xecutes.
euclidDist return euclidean distance between successive rows in a matrix.
evaluate evaluate string as an R expression
evaluateSplit convert a delimited string to a vector.
file.browse Text-based interactive file selection.
formatGPS formats an nx2 array with 'lon,lat' to "%.10fE, %.10fS".
getExtension get the extension of input path(s)
getFilename get the file name of input path(s) not including the extension.
getLastChar gets the last character of a string
getProgram retrieves path to system executable.
getUniqueFilename Generates a unique file name by incrementing a counter.
GPS2UTM converts GPS coordinates to UTM coordinates
gui.dir.choose cross-platform directory selection interface
gui.file.choose cross-platform file selection interface
gui.menu cross-platform item selection interface
gui.readline cross-platform user input interface
gui.yesno cross-platform yes/no interface
is.empty See if an argument is na, null, or length 0 (syntactic sugar).
loader loads an Rdata file and returns a list of the contents
make2Drot make 2D rotation matrix anticlockwise by theta
makeIfNotExists makes a directory, if it doesn't already exist.
muffle muffles as much output as possible (except errors)
muffle.messages muffles any output caused by warnings()/messages(), returning output
my.package.skeleton Create a skeleton for a new source package
package-utilities Utilities package in R.
PEv *P*rints a string and then *Ev*aluates it
printf output to screen, like sprintf.
reload reload a package.
sortPointsRectangle sort vertices in a rectangle in anticlockwise fashion.
stopf throw a formated error Essentially calls 'stop(sprintf(...))'
stringify create a string to reconstruct an object
tk_entry.dialog tcltk modal dialog to get user input
trim trim white spaces from a string
tryCatch.W.E tryCatch both warnings and errors
utilities Utilities package in R.
UTM2GPS converts UTM coordinates to GPS coordinates
verbosePrint output to screen, with a flush.console
verbosePrintf output to screen, like sprintf.
verifyInput asks a question and waits for valid input.
wait Pauses evaluation, waiting for user input.
warningf throw a formatted warning. Essentially calls 'warning(sprintf(...))'