R.utils v1.6.2


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

Last month downloads


Date 2011-02-14
License LGPL (>= 2.1)
URL http://www.braju.com/R/
LazyLoad TRUE
Packaged 2011-02-15 02:18:02 UTC; hb
Repository CRAN
Date/Publication 2011-02-15 09:51:40

Include our badge in your README