R.utils v1.5.6


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

Last month downloads


Date 2010-11-03
License LGPL (>= 2.1)
URL http://www.braju.com/R/
LazyLoad TRUE
Packaged 2010-11-03 18:16:21 UTC; hb
Repository CRAN
Date/Publication 2010-11-05 07:12:10

Include our badge in your README