R.utils v0.9.7

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

Last month downloads

Details

Date 2007-09-17
License LGPL version 2.1 or newer (the releases)
URL http://www.braju.com/R/
DevelURL http://www.maths.lth.se/help/R/
LazyLoad TRUE
Packaged Fri Oct 5 09:41:08 2007; hb

Include our badge in your README

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