R.utils v1.6.1


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

Last month downloads


Date 2011-02-01
License LGPL (>= 2.1)
URL http://www.braju.com/R/
LazyLoad TRUE
Repository CRAN
Repository/R-Forge/Project r-dots
Repository/R-Forge/Revision 439
Date/Publication 2011-02-03 08:18:12
Packaged 2011-02-02 22:15:43 UTC; rforge

Include our badge in your README