Xmisc: Xiaobei's miscellaneous classes and functions

This is Xiaobei's miscellaneous classes and functions useful when developing R packages, particularly for OOP using R Reference Class.

AuthorXiaobei Zhao [aut, cre, cph]
Date of publication2014-08-12 22:38:09
MaintainerXiaobei Zhao <xiaobei@binf.ku.dk>
LicenseGPL (>= 2)
Version0.2.1
http://CRAN.R-project.org/package=Xmisc

View on CRAN

Man pages

Argument-class: Argument

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...

func: Funciton with attributes

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

getone-list-method: Get an element by index or name from a list

getone-methods: getone-methods

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-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...

make.dir: Make a directory recursively

popmany-list-method: Remove and return many elements from a list

popmany-methods: popmany-methods

popone-list-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-list-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...

startswith: Determine if a character string "starts with" specified...

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-class: Unit testing for developing R packages

valid.arg.index: Check validity of an index

valid.mode: Return a valid mode given digits

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

Xmisc-package: Xiaobei's miscellaneous classes and functions

xRefClass-class: Extended Reference Class

Functions

Argument Man page
Argument-class Man page
ArgumentParser Man page
ArgumentParser-class Man page
as.loglevel Man page
atos Man page
cat0 Man page
character_to_logical Man page
check.packages Man page
dfchunk Man page
dfconcat Man page
dfsort Man page
dfsplit Man page
dir.exists Man page
endswith Man page
func Man page
get_executable Man page
get_extdata Man page
get_loglevel Man page
getone Man page
getone,list-method Man page
getone-methods Man page
is.activeBindingFunction Man page
is.connection Man page
is.dir Man page
is.file Man page
is.linux Man page
is.loglevel Man page
is.package.loaded Man page
is.uninitializedField Man page
is.windows Man page
List Man page
List-class Man page
logme Man page
logsave Man page
lprintf Man page
lstrip Man page
make.dir Man page
popmany Man page
popmany,list-method Man page
popmany-methods Man page
popone Man page
popone,list-method Man page
popone-methods Man page
printme Man page
R5.value.default Man page
R5.value.parse Man page
raw_input Man page
removeone Man page
removeone,list-method Man page
removeone-methods Man page
rstrip Man page
schunk Man page
srep Man page
stampme Man page
stampmsg Man page
startswith Man page
strip Man page
strsplit.first Man page
Sys.Epoch Man page
UnitTest Man page
UnitTest-class Man page
valid.arg.index Man page
valid.mode Man page
ValueParser Man page
ValueParser-class Man page
vchunk Man page
vconcat Man page
write.data.table Man page
Xmisc-package Man page
xRefClass Man page
xRefClass-class Man page

Files

Xmisc
Xmisc/inst
Xmisc/inst/CITATION
Xmisc/inst/tests
Xmisc/inst/tests/unittest.1.R
Xmisc/inst/tests/xrefclass.1.R
Xmisc/inst/bin
Xmisc/inst/bin/Xmisc-ArgumentParser.R
Xmisc/inst/doc
Xmisc/inst/doc/Xmisc-ArgumentParser.pdf
Xmisc/inst/doc/Xmisc-ArgumentParser.R
Xmisc/inst/doc/Xmisc-ArgumentParser.Rnw
Xmisc/NAMESPACE
Xmisc/NEWS
Xmisc/R
Xmisc/R/Xmisc-package.R Xmisc/R/generic.R Xmisc/R/logging.R Xmisc/R/list.R Xmisc/R/internal.R Xmisc/R/unittest.R Xmisc/R/xrefclass.R Xmisc/R/util.R Xmisc/R/valueparser.R Xmisc/R/imports.R Xmisc/R/argumentparser.R
Xmisc/vignettes
Xmisc/vignettes/bioinfo.sty
Xmisc/vignettes/R
Xmisc/vignettes/R/Xmisc-ArgumentParser.R
Xmisc/vignettes/Xmisc.bib
Xmisc/vignettes/Xvignette.sty
Xmisc/vignettes/Xmisc-ArgumentParser.Rnw
Xmisc/MD5
Xmisc/build
Xmisc/build/vignette.rds
Xmisc/DESCRIPTION
Xmisc/man
Xmisc/man/get_extdata.Rd Xmisc/man/is.uninitializedField.Rd Xmisc/man/valid.mode.Rd Xmisc/man/dir.exists.Rd Xmisc/man/popone-list-method.Rd Xmisc/man/popmany-methods.Rd Xmisc/man/printme.Rd Xmisc/man/popone-methods.Rd Xmisc/man/getone-methods.Rd Xmisc/man/lprintf.Rd Xmisc/man/List-class.Rd Xmisc/man/srep.Rd Xmisc/man/dfchunk.Rd Xmisc/man/strip.Rd Xmisc/man/is.activeBindingFunction.Rd Xmisc/man/logsave.Rd Xmisc/man/R5.value.default.Rd Xmisc/man/logme.Rd Xmisc/man/is.package.loaded.Rd Xmisc/man/stampmsg.Rd Xmisc/man/dfsplit.Rd Xmisc/man/endswith.Rd Xmisc/man/func.Rd Xmisc/man/vconcat.Rd Xmisc/man/UnitTest-class.Rd Xmisc/man/lstrip.Rd Xmisc/man/get_executable.Rd Xmisc/man/is.windows.Rd Xmisc/man/xRefClass-class.Rd Xmisc/man/ArgumentParser-class.Rd Xmisc/man/is.connection.Rd Xmisc/man/startswith.Rd Xmisc/man/dfconcat.Rd Xmisc/man/strsplit.first.Rd Xmisc/man/Xmisc-package.Rd Xmisc/man/schunk.Rd Xmisc/man/Sys.Epoch.Rd Xmisc/man/dfsort.Rd Xmisc/man/ValueParser-class.Rd Xmisc/man/getone-list-method.Rd Xmisc/man/removeone-list-method.Rd Xmisc/man/is.dir.Rd Xmisc/man/check.packages.Rd Xmisc/man/is.file.Rd Xmisc/man/character_to_logical.Rd Xmisc/man/get_loglevel.Rd Xmisc/man/is.linux.Rd Xmisc/man/valid.arg.index.Rd Xmisc/man/cat0.Rd Xmisc/man/Argument-class.Rd Xmisc/man/vchunk.Rd Xmisc/man/as.loglevel.Rd Xmisc/man/make.dir.Rd Xmisc/man/is.loglevel.Rd Xmisc/man/raw_input.Rd Xmisc/man/popmany-list-method.Rd Xmisc/man/rstrip.Rd Xmisc/man/write.data.table.Rd Xmisc/man/atos.Rd Xmisc/man/stampme.Rd Xmisc/man/removeone-methods.Rd Xmisc/man/R5.value.parse.Rd
Xmisc/.Rinstignore

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.