R.utils v1.16.2

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

Last month downloads

Details

Date 2012-09-12
License LGPL (>= 2.1)
LazyLoad TRUE
Packaged 2012-09-12 21:34:17 UTC; hb
Repository CRAN
Date/Publication 2012-09-13 19:08:41

Include our badge in your README

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