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