R.utils v1.1.0

0

Monthly downloads

0th

Percentile

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

Last month downloads

Details

Date 2008-10-24
License LGPL (>= 2.1)
URL http://www.braju.com/R/
LazyLoad TRUE
Packaged Fri Oct 24 18:16:13 2008; hb

Include our badge in your README

[![Rdoc](http://www.rdocumentation.org/badges/version/R.utils)](http://www.rdocumentation.org/packages/R.utils)