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:

packs

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

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -