R/author.packages.R

Defines functions author.packages

Documented in author.packages

author.packages <- function(author,...){
	ob <- sos::findFn(author,...)
	packs <- sub("library/",'',unique(ob$Package))
	packs.web <- sprintf("https://cran.r-project.org/web/packages/%s/index.html",packs)
	out <- plyr::llply(packs.web,readLines)
	author2 <- plyr::laply(out,.fun=function(lst){
				if(length(grep(author,lst))) 'author' else 'no author'})
	unique(packs[author2=='author'])
}
liuguofang/figsci documentation built on Nov. 24, 2023, 1:45 p.m.