R.utils v1.6.3

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

Last month downloads

Details

Date 2011-02-20
License LGPL (>= 2.1)
URL http://www.braju.com/R/
LazyLoad TRUE
Repository CRAN
Repository/R-Forge/Project r-dots
Repository/R-Forge/Revision 459
Date/Publication 2011-02-28 09:28:11
Packaged 2011-02-21 21:41:16 UTC; rforge

Include our badge in your README

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