R.utils v1.25.2


Monthly downloads



Various programming utilities

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

Functions in R.utils

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

Last month downloads


Date 2013-07-03
License LGPL (>= 2.1)
LazyLoad TRUE
Packaged 2013-07-03 11:30:02 UTC; hb
NeedsCompilation no
Repository CRAN
Date/Publication 2013-07-04 17:02:30

Include our badge in your README