R.utils v1.1.7


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

Last month downloads


Date 2009-05-30
License LGPL (>= 2.1)
URL http://www.braju.com/R/
LazyLoad TRUE
Repository CRAN
Repository/R-Forge/Project r-dots
Repository/R-Forge/Revision 240
Date/Publication 2009-06-08 06:54:24
Packaged 2009-06-07 03:04:58 UTC; rforge

Include our badge in your README