r - Load all files from folder and subfolders -


i know source() in r. takes path and/or filename load i.e. function saved in .r file. need same command, supposed load every .r file 1 folder , subfolders.

is there oneliner (some library) or have write loop 'n everything?

this might work

lapply(list.files(pattern = "[.]r$", recursive = true), source) 

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 -