RDocumentation
Moon
Learn R
Search all packages and functions
⚠️
There's a newer version (0.2.1) of this package.
Take me there.
Xmisc (version 0.0.9)
Xiaobei's miscellaneous classes and functions
Description
This is Xiaobei's miscellaneous classes and functions useful when developing R packages, particularly for OOP using R Reference Class.
Copy Link
Copy
Link to current version
Version
Version
0.2.1
0.1.0
0.0.10
0.0.9
Down Chevron
Install
install.packages('Xmisc')
Monthly Downloads
45
Version
0.0.9
License
GPL (>= 2)
Maintainer
Xiaobei Zhao
Last Published
June 14th, 2014
Functions in Xmisc (0.0.9)
Search functions
lprintf
String formatting given an environment
is.windows
Is the OS Windows
schunk
Chunk a string into parts
strsplit.first
Split a string at the first `split'
get.loglevel
Define log levels
xRefClass-class
Extended Reference Class
Xmisc-package
Xiaobei's miscellaneous classes and functions
Argument-class
Argument
ArgumentParser-class
Parser for command-line options and arguments
getone,list-method
Get an element by index or name from a list
is.activeBindingFunction
General test of a class name being activeBindingFunction
popmany-methods
popmany-methods
List-class
A class inherited directly from envRefClass
write.data.table
A wrapper of write.table
is.file
Is it a file
dfchunk
Chunk data.frame into parts
ValueParser-class
Parser for values
removeone,list-method
Remove an element from an R object
atos
Convert an R object to a string
dfconcat
Concatenate data.frame into a string
is.uninitializedField
General test of a class being uninitializedField
logme
Log the name and the content of an R object
logsave
Log a `save`
valid.mode
Return a valid mode given digits
R5.value.default
R5.value.default
rstrip
Strip a string with given chars at the (right) end
make.dir
Make a directory recursively
is.dir
Is it a directory
Sys.Epoch
Get system epoch
startswith
Determine if a character string "starts with" specified characters
getone-methods
getone-methods
dir.exists
Does the directory exist
removeone-methods
removeone-methods
popone-methods
popone-methods
endswith
Determine if a character string "ends with" specified characters
as.loglevel
Coerces an object to loglevel
popone,list-method
Remove and return an element from a list
vchunk
Chunk a vector into parts
lstrip
Strip a string with given characters at the beginning (left end)
stampme
Print a message with a time stamp
R5.value.parse
R5.value.parse
valid.arg.index
Check validity of an index
is.linux
Is the OS Linux
is.package.loaded
Check if a package is loaded
popmany,list-method
Remove and return many elements from a list
printme
Print the name and the content of an R object
strip
Strip a string with given chars at both ends
check.packages
Check if a package can be loaded
is.loglevel
General test of an object being interpretable as loglevel