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

Last month downloads

Details

Date 2007-04-11
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 Wed Apr 11 08:01:26 2007; hb

Include our badge in your README

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