R.utils v1.8.1

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

Last month downloads

Details

Date 2011-09-19
License LGPL (>= 2.1)
URL http://www.braju.com/R/
LazyLoad TRUE
Packaged 2011-09-19 17:55:00 UTC; hb
Repository CRAN
Date/Publication 2011-09-20 08:29:37

Include our badge in your README

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