RDocumentation
Moon
Learn R
Search all packages and functions
⚠️
There's a newer version (2.12.3) of this package.
Take me there.
R.utils (version 0.7.7)
Various programming utilities
Description
This package provides utility classes and methods useful when programming in R and developing R packages.
Copy Link
Copy
Link to current version
Version
Version
2.12.3
2.12.2
2.12.1
2.12.0
2.11.0
2.10.1
2.9.2
2.9.1
2.9.0
2.8.0
2.7.0
2.6.0
2.5.0
2.4.0
2.3.0
2.2.0
2.1.0
2.0.2
2.0.1
2.0.0
1.34.0
1.33.0
1.32.4
1.29.8
1.28.4
1.27.1
1.26.2
1.26.0
1.25.2
1.23.2
1.19.5
1.19.3
1.18.0
1.16.2
1.16.0
1.12.1
1.12.0
1.9.11
1.9.9
1.9.7
1.9.6
1.9.4
1.9.3
1.8.7
1.8.5
1.8.2
1.8.1
1.7.8
1.7.7
1.7.5
1.7.4
1.7.3
1.7.2
1.7.0
1.6.5
1.6.4
1.6.3
1.6.2
1.6.1
1.6.0
1.5.8
1.5.7
1.5.6
1.5.3
1.5.2
1.5.0
1.4.4
1.4.3
1.4.2
1.4.0
1.3.3
1.3.2
1.3.0
1.2.4
1.2.2
1.2.0
1.1.7
1.1.1
1.1.0
1.0.1
0.9.8
0.9.7
0.9.6
0.9.5
0.9.1
0.9.0
0.8.9
0.8.0
0.7.9
0.7.7
0.5.5
Down Chevron
Install
install.packages('R.utils')
Monthly Downloads
224,871
Version
0.7.7
License
LGPL version 2.1 or newer (the releases)
Maintainer
Henrik Bengtsson
Last Published
March 30th, 2006
Functions in R.utils (0.7.7)
Search functions
check.Assert
Static method asserting that a generic condition is true
R.utils-package
Package R.utils
capitalize
Capitalizes/decapitalizes each character string in a vector
getCharacters.Arguments
Coerces to a character vector and validates
isOn.NullVerbose
Checks if the output is on
Assert
The Assert class
getEnvironment.Arguments
Gets an existing environment
equals.Verbose
Checks if this object is equal to another
asLong.Java
Converts a numeric to a Java long
extract.array
Extract a subset of an array, matrix or a vector with unknown dimensions
SmartComments
Abstract class SmartComments
lastModified
Gets the time when the file was last modified
convertComment.SmartComments
Converts a single smart comment to R code
header.Verbose
Writes a header
cat.Verbose
Concatenates and prints objects if above threshold
convertComment.VComments
Converts a verbose comment to R code
getRelativePath
Gets the relative pathname relative to a directory
getVariableValue.GString
Gets a variable value given a name and attributes
ProgressBar
Provides text based counting progress bar
Java
Static class for Java related methods
inherits.Assert
Static method asserting that an object inherits from of a certain class
capture.Verbose
Captures output of a function
VComments
The VComments class
getBuiltinDatetime.GString
Gets the current date and time
eps
EPS graphics device
asInt.Java
Converts an numeric to a Java integer
gunzip
Gunzip a file
evaluate.Verbose
Evaluates a function and prints its results if above threshold
LComments
The LComments class
getBarString.ProgressBar
Gets the progress bar string to be displayed
promptAndSave.Settings
Prompt user to save modified settings
findGhostscript.System
Searches for the ghostview binary on the current system
getAbsolutePath
Gets the absolute pathname string
getReadablePathname.Arguments
Gets a readable pathname
as.character.Options
Returns a character string version of this object
isVector.Assert
Static method asserting thatan object is a vector
Settings
Class for applicational settings
as.character.Verbose
Returns a character string version of this object
copyDirectory
Copies a directory
resetWarnings
Resets recorded warnings
enter.Verbose
Writes a message and indents the following output
detachPackage
Detaches a packages by name
getRaw.GString
Gets the unprocessed GString
getLogicals.Arguments
Coerces to a logical vector and validates
isVisible.Verbose
Checks if a certain verbose level will be shown or not
getIndices.Arguments
Coerces to a integer vector and validates
compile.SmartComments
Preprocess a vector of code lines
System
Static class to query information about the system
timestamp.Verbose
Writes a timestamp
callHooks
Call hook functions
setProgress.ProgressBar
Sets current progress
currentTimeMillis.System
Get the current time in milliseconds
as.character.binmode
Converts a binary/octal/hexadecimal number into a string
filePath
Construct the path to a file from components and expands Windows Shortcuts along the pathname from root to leaf
getBuiltinHostname.GString
Gets the hostname of the system running R
parse.SmartComments
Parses one single smart comment
findSettings.Settings
Searches for the settings file in one or several directories
on.Verbose
Turn on the output
isVisible.NullVerbose
Checks if a certain verbose level will be shown or not
addFinalizerToLast
Modifies .Last() to call 'finalizeSession()
setTicks.ProgressBar
Sets values for which ticks should be visible
getParent
Gets the string of the parent specified by this pathname
attachLocally.list
Assigns an objects elements locally
getBuiltinRhome.GString
Gets the path where R is installed
increase.ProgressBar
Increases (steps) progress bar
readWindowsShortcut
Reads a Microsoft Windows Shortcut (.lnk file)
jpeg2
A JPEG device for Bitmap Files via GhostScript
GString
Character string with advanced substitutions
getUsername.System
Retrieves the name of the user running R
getLeaves.Options
Gets all (non-list) options in a flat list
getBuiltinOs.GString
Gets the operating system of the running machine
isAbsolutePath
Checks if this pathname is absolute
listDirectory
Gets the file names in the directory
getReadablePathnames.Arguments
Gets a readable pathname
isDone.ProgressBar
Checks if progress bar is completed
readByte.Java
Reads a Java formatted byte (8 bits) from a connection
getThreshold.Verbose
Gets current verbose threshold
printf.Verbose
Formats and prints object if above threshold
getIntegers.Arguments
Coerces to a integer vector and validates
patchCode
Patches installed and loaded packages and more
asByte.Java
Converts a numeric to a Java byte
getVerbose.Arguments
Coerces to Verbose object
loadAnywhere.Settings
Loads settings from file
getTimestampFormat.Verbose
Gets the default timestamp format
isOn.Verbose
Checks if the output is on
isDirectory
Checks if the file specification is a directory
equals.Options
Checks if this object is equal to another Options object
getBuiltinDate.GString
Gets the current date
getRegularExpression.Arguments
Gets a valid regular expression pattern
getWritablePathname.Arguments
Gets a writable pathname
FileProgressBar
A progress bar that sets the size of a file accordingly
names.Options
Gets the full pathname of all (non-list) options
asShort.Java
Converts a numeric to a Java short
isFile
Checks if the file specification is a file
readTableIndex
Reads a single column from file in table format
validate.VComments
Validates the compiled lines
saveAnywhere.Settings
Saves settings to file
getHostname.System
Retrieves the computer name of the current host
off.Verbose
Turn off the output
isZero
Checks if a value is (close to) zero or not
isUrl
Checks if one or several pathnames is URLs
isScalar.Assert
Static method asserting thatan object is a single value
hasOption.Options
Checks if an option exists
reset.ProgressBar
Reset progress bar
summary.Verbose
Generates a summary of an object if above threshold
mkdirs
Creates a directory including any necessary but nonexistent parent directories
readTable
Reads a file in table format
getBuiltinTime.GString
Gets the current time
getLoadedPathname.Settings
Gets the pathname of the settings file loaded
nbrOfOptions.Options
Gets the number of options set
findGraphicsDevice.System
Searches for a working PNG device
doCall
Executes a function call with option to ignore unused arguments
getDoubles.Arguments
Coerces to a double vector and validates
remove.FileProgressBar
Removes the progress file for a file progress bar
openBrowser.System
Opens an HTML document using the OS default HTML browser
getBuiltinUsername.GString
Gets the username of the user running R
getBuiltinRversion.GString
Gets the current R version
seqToIntervals
Gets all contigous intervals of a vector of indices
insert
Insert values to a vector at certain positions
reset.SmartComments
Resets a SmartComments compiler
finalizeSession
Function to call for finalizing the R session
setStepLength.ProgressBar
Sets default step length
commandArgs
Extract Command Line Arguments
getOption.Options
Gets an option
validate.SmartComments
Validates the compiled lines
displayCode
Displays the contents of a text file with line numbers and more
as.double.Verbose
Gets a numeric value of this object
sourceDirectory
Sources files recursively to either local or global environment
update.ProgressBar
Updates progress bar
wrap.array
Reshape an array or a matrix by permuting and/or joining dimensions
timestampOn.Verbose
Turns automatic timestamping on and off
writeRaw.NullVerbose
All output methods
isModified.Settings
Checks if settings has been modified compared to whats on file
parseDebian.System
Parses a string, file or connection for Debian formatted parameters
readUTF.Java
Reads a Java (UTF-8) formatted string from a connection
parse.GString
Parses a GString
readShort.Java
Reads a Java formatted short (16 bits) from a connection
print.Verbose
Prints objects if above threshold
onSessionExit
Registers a function to be called when the R session finishes
readInt.Java
Reads a Java formatted int (32 bits) from a connection
update.FileProgressBar
Updates file progress bar
NullVerbose
A Verbose class ignoring everything
unwrap.array
Unwrap an array, matrix or a vector to an array of more dimensions
warnings.Verbose
Outputs any warnings recorded
setDefaultLevel.Verbose
Sets the current default verbose level
setValue.ProgressBar
Sets current value
getNumerics.Arguments
Coerces to a numeric vector and validates
writeByte.Java
Writes a byte (8 bits) to a connection in Java format
getBuiltinPid.GString
Gets the process id of the current R session
writeShort.Java
Writes a short (16 bits) to a connection in Java format
ruler.Verbose
Writes a ruler
print.GString
Prints the processed GString
splitByPattern
Splits a single character string by pattern
sourceTo
Parses and evaluates code from a file or a connection
pushState.Verbose
Pushes the current indentation state of the Verbose object
reset.VComments
Resets a VComments compiler
writeRaw.Verbose
Writes objects if above threshold
hasUrlProtocol
Checks if one or several pathnames has a URL protocol
str.Options
Prints the structure of the options
setOption.Options
Sets an option
as.character.GString
Gets the processed character string
writeInt.Java
Writes a integer (32 bits) to a connection in Java format
toUrl
Converts a pathname into a URL
setTimestampFormat.Verbose
Sets the default timestamp format
Non-documented objects
Non-documented objects
Verbose
Class to writing verbose messages to a connection or file
as.character.ProgressBar
Gets a string description of the progress bar
exit.Verbose
Writes a message and unindents the following output
getVector.Arguments
Validates a vector
isMatrix.Assert
Static method asserting thatan object is a matrix
setMaxValue.ProgressBar
Sets maximum value
relibrary
Reloads a package
writeUTF.Java
Writes a string to a connection in Java format (UTF-8)
Arguments
Static class to validate and process arguments
Options
The Options class
as.list.Options
Gets a list representation of the options
as.logical.Verbose
Gets a logical value of this object
intToBin
Converts an integer to a binary/octal/hexadecimal number
png2
A PNG device for Bitmap Files via GhostScript
newline.Verbose
Writes one or several empty lines
seqToHumanReadable
Gets a short human readable string representation of an vector of indices
setThreshold.Verbose
Sets verbose threshold
str.Verbose
Prints the structure of an object if above threshold