R.utils v1.6.5


Monthly downloads



Various programming utilities

This package provides utility classes and methods useful when programming in R and developing R packages.

Functions in R.utils

Name Description
LComments The LComments class
Arguments Static class to validate and process arguments
as.double.Verbose Gets a numeric value of this object
devGetLabel Gets the label of a device
GString Character string with advanced substitutions
Sys.setenv Sys.setenv
ProgressBar Provides text based counting progress bar
Java Static class for Java related methods
equals.Verbose Checks if this object is equal to another
TimeoutException TimeoutException represents timeout errors
asShort.Java Converts a numeric to a Java short
copyFile Copies a file safely
capitalize Capitalizes/decapitalizes each character string in a vector
as.list.Options Gets a list representation of the options
getVariableValue.GString Gets a variable value given a name and attributes
isPackageLoaded Checks if a package is loaded or not
getVector.Arguments Validates a vector
compile.SmartComments Preprocess a vector of code lines
NullVerbose A Verbose class ignoring everything
mergeIntervals.numeric Merges intervals
doCall Executes a function call with option to ignore unused arguments
evalWithTimeout Evaluate an R expression and interrupts it if it takes too long
ruler.Verbose Writes a ruler
print.GString Prints the processed GString
reset.ProgressBar Reset progress bar
getBuiltinOs.GString Gets the operating system of the running machine
promptAndSave.Settings Prompt user to save modified settings
printf C-style formatted output
isVisible.Verbose Checks if a certain verbose level will be shown or not
sourceDirectory Sources files recursively to either local or global environment
FileProgressBar A progress bar that sets the size of a file accordingly
getBuiltinUsername.GString Gets the username of the user running R
Options The Options class
createLink Creates a link to a file or a directory
splitByPattern Splits a single character string by pattern
getDoubles.Arguments Coerces to a double vector and validates
removeDirectory Removes a directory
currentTimeMillis.System Get the current time in milliseconds
convertComment.VComments Converts a verbose comment to R code
getBuiltinRhome.GString Gets the path where R is installed
setTimestampFormat.Verbose Sets the default timestamp format
getRegularExpression.Arguments Gets a valid regular expression pattern
increase.ProgressBar Increases (steps) progress bar
Non-documented objects Non-documented objects
MultiVerbose A Verbose class ignoring everything
finalizeSession Function to call for finalizing the R session
System Static class to query information about the system
asInt.Java Converts an numeric to a Java integer
getBuiltinHostname.GString Gets the hostname of the system running R
addFinalizerToLast Modifies .Last() to call 'finalizeSession()
readByte.Java Reads a Java formatted byte (8 bits) from a connection
intervalsToSeq.matrix Generates a vector of indices from a matrix of intervals
parse.GString Parses a GString
parseDebian.System Parses a string, file or connection for Debian formatted parameters
fileAccess Checks the permission of a file or a directory
bunzip2 Bunzip a file
getNumerics.Arguments Coerces to a numeric vector and validates
capture.Verbose Captures output of a function
on.Verbose Turn on the output
writeRaw.Verbose Writes objects if above threshold
more.Verbose Creates a cloned instance with a lower threshold
writeBinFragments Writes binary data to disjoint sections of a connection or a file
devEval Opens a new device, evaluate (graphing) code, and closes device
findSettings.Settings Searches for the settings file in one or several directories
validate.SmartComments Validates the compiled lines
relibrary Reloads a package
setLabels.TextStatusBar Sets new values of given labels
getAbsolutePath Gets the absolute pathname string
isAbsolutePath Checks if this pathname is absolute
devIsOpen Checks if a device is open or not
SmartComments Abstract class SmartComments
asLong.Java Converts a numeric to a Java long
isOpen.character Checks if there is an open connection to a file
arrayIndex Converts vector indices to array indices
Assert The Assert class
as.character.Options Returns a character string version of this object
extract.array Extract a subset of an array, matrix or a vector with unknown dimensions
touchFile Updates the timestamp of a file
update.TextStatusBar Updates the status bar (visually)
toUrl Converts a pathname into a URL
countLines Counts the number of lines in a text file
getThreshold.Verbose Gets current verbose threshold
dataFrame Allocates a data frame with given column classes
copyDirectory Copies a directory
getReadablePathnames.Arguments Gets a readable pathname
onSessionExit Registers a function to be called when the R session finishes
cat.Verbose Concatenates and prints objects if above threshold
isDirectory Checks if the file specification is a directory
isVisible.NullVerbose Checks if a certain verbose level will be shown or not
downloadFile.character Downloads a file
lapply.MultiVerbose Applies a function to each of the Verbose objects
flush.TextStatusBar Flushes the output
isFile Checks if the file specification is a file
check.Assert Static method asserting that a generic condition is true
writeShort.Java Writes a short (16 bits) to a connection in Java format
moveInSearchPath Moves a environment in the search path to another position
dimNA< - Sets the dimension of an object with the option to infer one dimension autmatically
readShort.Java Reads a Java formatted short (16 bits) from a connection
Verbose Class to writing verbose messages to a connection or file
getUsername.System Retrieves the name of the user running R
findGraphicsDevice.System Searches for a working PNG device
as.logical.Verbose Gets a logical value of this object
R.utils-package Package R.utils
resetWarnings Resets recorded warnings
toCamelCase Converts a string of words into a merged camel-cased word
devNew Opens a new device
isZero Checks if a value is (close to) zero or not
displayCode Displays the contents of a text file with line numbers and more
convertComment.SmartComments Converts a single smart comment to R code
getBuiltinPid.GString Gets the process id of the current R session
intToBin Converts an integer to a binary/octal/hexadecimal number
less.Verbose Creates a cloned instance with a higher threshold
getHostname.System Retrieves the computer name of the current host
commandArgs Extract Command Line Arguments
getRaw.GString Gets the unprocessed GString
Settings Class for applicational settings
onGarbageCollect Registers a function to be called when the R garbage collector is (detected to be) running
jpeg2 A JPEG device for Bitmap Files via GhostScript
as.character.ProgressBar Gets a string description of the progress bar
getBuiltinRversion.GString Gets the current R version
devSetLabel Sets the label of a device
getIndices.Arguments Coerces to a integer vector and validates
getTimestampFormat.Verbose Gets the default timestamp format
isUrl Checks if one or several pathnames is URLs
VComments The VComments class
as.character.GString Gets the processed character string
exit.Verbose Writes a message and unindents the following output
getVerbose.Arguments Coerces to Verbose object
lastModified Gets the time when the file was last modified
getLeaves.Options Gets all (non-list) options in a flat list
getLogicals.Arguments Coerces to a logical vector and validates
asByte.Java Converts a numeric to a Java byte
loadToEnv Method to load objects to a new environment
getBarString.ProgressBar Gets the progress bar string to be displayed
popBackupFile Drops a backup suffix from the backup pathname
isVector.Assert Static method asserting thatan object is a vector
str.Verbose Prints the structure of an object if above threshold
attachLocally.list Assigns an objects elements locally
findSourceTraceback Finds all 'srcfile' objects generated by source() in all call frames
pushState.Verbose Pushes the current indentation state of the Verbose object
getBuiltinTime.GString Gets the current time
isMatrix.Assert Static method asserting thatan object is a matrix
reassignInPackage Re-assigns a new value to an existing object in a loaded package
callHooks.function Call hook functions
setValue.ProgressBar Sets current value
names.Options Gets the full pathname of all (non-list) options
isDone.ProgressBar Checks if progress bar is completed
header.Verbose Writes a header
as.character.binmode Converts a binary/octal/hexadecimal number into a string
isOn.Verbose Checks if the output is on
createFileAtomically Creates a file atomically
isEof.connection Checks if the current file position for a connection is at the 'End of File'
mkdirs Creates a directory including any necessary but nonexistent parent directories
as.character.Verbose Returns a character string version of this object
stext Writes text in the margin along the sides of a plot
timestampOn.Verbose Turns automatic timestamping on and off
png2 A PNG device for Bitmap Files via GhostScript
setLabel.TextStatusBar Sets the value of a label
inherits.Assert Static method asserting that an object inherits from of a certain class
pushTemporaryFile Appends a temporary suffix to the pathname
getLabel.TextStatusBar Gets the current value of a label
filePath Construct the path to a file from components and expands Windows Shortcuts along the pathname from root to leaf
off.Verbose Turn off the output
readUTF.Java Reads a Java (UTF-8) formatted string from a connection
setThreshold.Verbose Sets verbose threshold
setTicks.ProgressBar Sets values for which ticks should be visible
loadObject Method to load object from a file or a connection
sourceTo Parses and evaluates code from a file or a connection
enter.Verbose Writes a message and indents the following output
devList Lists the indices of the open devices named by their labels
readTableIndex Reads a single column from file in table format
getInstanceOf.Arguments Gets an instance of the object that is of a particular class
printf.Verbose Formats and prints object if above threshold
writeByte.Java Writes a byte (8 bits) to a connection in Java format
writeRaw.MultiVerbose Writes to each of the Verbose objects
getBuiltinDatetime.GString Gets the current date and time
evaluate.Verbose Evaluates a function and prints its results if above threshold
popTemporaryFile Drops a temporary suffix from the temporary pathname
openBrowser.System Opens an HTML document using the OS default HTML browser
patchCode Patches installed and loaded packages and more
loadAnywhere.Settings Loads settings from file
getCharacters.Arguments Coerces to a character vector and validates
pushBackupFile Appends a backup suffix to the pathname
getParent Gets the string of the parent specified by this pathname
getWritablePathname.Arguments Gets a writable pathname
mapToIntervals.numeric Maps values to intervals
newline.Verbose Writes one or several empty lines
readRdHelp Reads one or more Rd help files in a certain format
seqToHumanReadable Gets a short human readable string representation of an vector of indices
saveAnywhere.Settings Saves settings to file
setStepLength.ProgressBar Sets default step length
hasUrlProtocol Checks if one or several pathnames has a URL protocol
nbrOfOptions.Options Gets the number of options set
remove.FileProgressBar Removes the progress file for a file progress bar
setOption.Options Sets an option
summary.Verbose Generates a summary of an object if above threshold
print.Verbose Prints objects if above threshold
saveObject Saves an object to a file or a connection
seqToIntervals Gets all contigous intervals of a vector of indices
validate.VComments Validates the compiled lines
readTable Reads a file in table format
warnings.Verbose Outputs any warnings recorded
TextStatusBar A status bar at the R prompt that can be updated
devOff Closes a device
str.Options Prints the structure of the options
subplots Creates a grid of subplots
writeRaw.NullVerbose All output methods
readBinFragments Reads binary data from disjoint sections of a connection or a file
updateLabels.TextStatusBar Sets the new values of given labels and updates the status bar
parse.SmartComments Parses one single smart comment
update.FileProgressBar Updates file progress bar
eps EPS graphics device
timestamp.Verbose Writes a timestamp
whichVector.logical Identifies TRUE elements in a logical vector
readInt.Java Reads a Java formatted int (32 bits) from a connection
wrap.array Reshape an array or a matrix by permuting and/or joining dimensions
findGhostscript.System Searches for the ghostview binary on the current system
getBuiltinDate.GString Gets the current date
getIntegers.Arguments Coerces to a integer vector and validates
devDone Closes an on-screen (interactive) device
createWindowsShortcut Creates a Microsoft Windows Shortcut (.lnk file)
gzip Gzip/Gunzip a file
getEnvironment.Arguments Gets an existing environment
callHooks Call hook functions by hook name
isOn.NullVerbose Checks if the output is on
devSet Activates a device
getMessage.TimeoutException Gets the message of the exception
isPackageInstalled Checks if a package is installed or not
inAnyInterval.numeric Checks if a set of values are inside one or more intervals
isScalar.Assert Static method asserting thatan object is a single value
newline.TextStatusBar Writes a newline
readWindowsShortcut Reads a Microsoft Windows Shortcut (.lnk file)
setMaxValue.ProgressBar Sets maximum value
resample Sample values from a set of elements
update.ProgressBar Updates progress bar
setProgress.ProgressBar Sets current progress
reset.VComments Resets a VComments compiler
getLoadedPathname.Settings Gets the pathname of the settings file loaded
getRelativePath Gets the relative pathname relative to a directory
insert Insert values to a vector at certain positions
popMessage.TextStatusBar Adds a message above the status bar
reset.SmartComments Resets a SmartComments compiler
setDefaultLevel.Verbose Sets the current default verbose level
unwrap.array Unwrap an array, matrix or a vector to an array of more dimensions
writeInt.Java Writes a integer (32 bits) to a connection in Java format
writeUTF.Java Writes a string to a connection in Java format (UTF-8)
colClasses Creates a vector of column classes used for tabular reading
detachPackage Detaches a packages by name
getOption.Options Gets an option
equals.Options Checks if this object is equal to another Options object
getReadablePathname.Arguments Gets a readable pathname
hasOption.Options Checks if an option exists
isModified.Settings Checks if settings has been modified compared to whats on file
listDirectory Gets the file names in the directory
renameFile Renames a file safely
No Results!

Last month downloads


Date 2011-03-03
License LGPL (>= 2.1)
URL http://www.braju.com/R/
LazyLoad TRUE
Packaged 2011-03-03 16:15:29 UTC; hb
Repository CRAN
Date/Publication 2011-03-04 07:15:56

Include our badge in your README