R.utils v1.5.0


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

Last month downloads


Date 2010-08-04
License LGPL (>= 2.1)
URL http://www.braju.com/R/
LazyLoad TRUE
Repository CRAN
Repository/R-Forge/Project r-dots
Repository/R-Forge/Revision 378
Date/Publication 2010-08-16 13:45:05
Packaged 2010-08-14 20:32:33 UTC; rforge

Include our badge in your README