R/zzz.R

Defines functions .onLoad

.onLoad <- function(libname, pkgname) {
	from <- system.file("extdata", "annotations.sqlite", package="geneConvert")
	directory <- file.path(path.expand("~"), ".config/geneConvert")
	if (!file.exists(directory)) {
		dir.create(directory)
	}
	to <- file.path(directory, "annotations.sqlite")
	if (!file.exists(to)) {
		file.copy(from, to, copy.mode=FALSE)
	}
}
Dudemanguy/geneConvert documentation built on Dec. 5, 2019, 12:46 a.m.