R.utils v1.8.7


Monthly downloads



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

Last month downloads


Date 2011-11-01
License LGPL (>= 2.1)
URL http://www.braju.com/R/
LazyLoad TRUE
Packaged 2011-11-01 18:25:06 UTC; hb
Repository CRAN
Date/Publication 2011-11-02 17:17:02

Include our badge in your README