/smarter

Modified R functions

Primary LanguageRGNU General Public License v3.0GPL-3.0

C++ R CRAN status Project Status: Active - The project has reached a stable, usable state and is being actively developed.

A R package with modified R functions for data exploration and other features.

Installation

Copy/paste the following code to install R package dependencies and smarter.

# Dependencies
req_packs = c("usethis","rmarkdown","Rcpp",
	"RcppArmadillo","devtools","BiocManager",
	"smarter")

for(pack in req_packs){
	
	chk_pack = tryCatch(find.package(pack),
		error = function(ee){NULL})
	
	if( !is.null(chk_pack) ){
		library(package = pack,character.only = TRUE)
		next
	}
	
	bb = NULL
	
	if( pack %in% "smarter" ){
		bb = tryCatch(install_github("pllittle/smarter",
			dependencies = TRUE),
			error = function(ee){"error"})
	} else {
		bb = tryCatch(install.packages(pkgs = pack,
			dependencies = TRUE),
			error = function(ee){"error"})
	}
	
	if( !is.null(bb) && bb == "error" )
		stop(sprintf("Error for package = %s",pack))
	
}

Future ideas