r - Installing packages that have a common string in a loop -
i've came across deducer, crossed mind have @ , progressed installing package. after searching through cran occurred me there number of packages support deducer:
instead of running:
install.packages("deducer") install.packages("deducerextras")
i prefer run loop packages have deducer string in name. hence question, how can list of packages cran name matches specific string , install them in loop?
quite raw:
out <- available.packages() libs <- as.vector(out[grep("deducer", out[,1]),1]) lapply(libs, install.packages)
Comments
Post a Comment