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

Last month downloads

Details

Date 2009-09-09
License LGPL (>= 2.1)
URL http://www.braju.com/R/
LazyLoad TRUE
Packaged 2009-09-10 00:09:33 UTC; hb
Repository CRAN
Date/Publication 2009-09-10 09:50:15

Include our badge in your README

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