Xiaobei's miscellaneous classes and functions


[Up] [Top]

Documentation for package ‘Xmisc’ version 0.2.1

Help Pages

Xmisc-package Xiaobei's miscellaneous classes and functions
Argument Argument
Argument-class Argument
ArgumentParser Parser for command-line options and arguments
ArgumentParser-class Parser for command-line options and arguments
as.loglevel Coerces an object to loglevel
atos Convert an R object to a string
cat0 Cat without space but with a newline at the end
character_to_logical Convert a character string to logical.
check.packages Check if a package can be loaded
dfchunk Chunk data.frame into parts
dfconcat Concatenate data.frame into a string
dfsort Sort data.frame given levels of one column
dfsplit Split data.frame given one leveled column
dir.exists Does the directory exist
endswith Determine if a character string "ends with" specified characters
func Funciton with attributes
getone getone-methods
getone-method Get an element by index or name from a list
getone-methods getone-methods
get_executable Get the executable file path of a package
get_extdata Get the extdata file path of a package
get_loglevel Define log levels
is.activeBindingFunction General test of a class name being activeBindingFunction
is.connection Is a connection
is.dir Is it a directory
is.file Is it a file
is.linux Is the OS Linux
is.loglevel General test of an object being interpretable as loglevel
is.package.loaded Check if a package is loaded
is.uninitializedField General test of a class being uninitializedField
is.windows Is the OS Windows
List A class inherited directly from envRefClass
List-class A class inherited directly from envRefClass
logme Log the name and the content of an R object
logsave Log a 'save'
lprintf String formatting given an environment
lstrip Strip a string with given characters at the beginning (left end)
make.dir Make a directory recursively
popmany popmany-methods
popmany-method Remove and return many elements from a list
popmany-methods popmany-methods
popone popone-methods
popone-method Remove and return an element from a list
popone-methods popone-methods
printme Print the name and the content of an R object
R5.value.default R5.value.default
R5.value.parse R5.value.parse
raw_input Input from the terminal (in interactive use)
removeone removeone-methods
removeone-method Remove an element from an R object
removeone-methods removeone-methods
rstrip Strip a string with given chars at the (right) end
schunk Chunk a string into parts
srep Replicate and concatenate a string
stampme Print a message with a time stamp
stampmsg Generate a diagnostic message from its arguments, with timestamp
startswith Determine if a character string "starts with" specified characters
strip Strip a string with given chars at both ends
strsplit.first Split a string at the first 'split'
Sys.Epoch Get system epoch
UnitTest Unit testing for developing R packages
UnitTest-class Unit testing for developing R packages
valid.arg.index Check validity of an index
valid.mode Return a valid mode given digits
ValueParser Parser for values
ValueParser-class Parser for values
vchunk Chunk a vector into parts
vconcat Concatenate vector into a string
write.data.table A wrapper of write.table
xRefClass Extended Reference Class
xRefClass-class Extended Reference Class