R.utils v1.23.2


Monthly downloads



Various programming utilities

This package provides utility methods useful when programming and developing R packages.

Functions in R.utils

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

Last month downloads


Date 2013-03-22
License LGPL (>= 2.1)
LazyLoad TRUE
Packaged 2013-03-24 18:30:38 UTC; hb
NeedsCompilation no
Repository CRAN
Date/Publication 2013-03-27 09:07:23

Include our badge in your README