R.utils v1.16.0

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

Last month downloads

Details

Date 2012-07-11
License LGPL (>= 2.1)
URL http://www.braju.com/R/
LazyLoad TRUE
Packaged 2012-08-20 00:00:34 UTC; hb
Repository CRAN
Date/Publication 2012-08-21 03:49:57

Include our badge in your README

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