R.utils v1.8.2

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

Last month downloads

Details

Date 2011-09-24
License LGPL (>= 2.1)
URL http://www.braju.com/R/
LazyLoad TRUE
Packaged 2011-09-27 03:51:46 UTC; hb
Repository CRAN
Date/Publication 2011-09-27 10:35:01

Include our badge in your README

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