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

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

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

android - How to create dynamically Fragment pager adapter -