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

Last month downloads

Details

Date 2011-04-02
License LGPL (>= 2.1)
URL http://www.braju.com/R/
LazyLoad TRUE
Packaged 2011-04-03 16:02:12 UTC; hb
Repository CRAN
Date/Publication 2011-04-04 07:37:22

Include our badge in your README

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