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

Last month downloads


Date 2011-07-23
License LGPL (>= 2.1)
URL http://www.braju.com/R/
LazyLoad TRUE
Packaged 2011-07-24 02:12:10 UTC; hb
Repository CRAN
Date/Publication 2011-07-24 05:14:30

Include our badge in your README