loading modules from multiple directories

7 views
Skip to first unread message

Steve Cumming

unread,
Mar 6, 2018, 6:21:41 PM3/6/18
to SpaDES Users
Is there any ability to specify a list of search paths for modules? 


Alex Chubaty

unread,
Mar 6, 2018, 6:34:49 PM3/6/18
to SpaDES Users
Currently, no. My preferred solution on macOS/Ilnux is to set up symlinks to the modules in other directories: ln -s [target] [link]

So in your modules/ directory you'd have:

modules/
|_ module1/
|_ module2/
|_ module3/ --> /path/to/somewhere/module3
|_ module3/ --> /path/to/somewhere/else/module4

Alex

Steve Cumming

unread,
Mar 12, 2018, 5:02:56 AM3/12/18
to SpaDES Users
Thanks, that would work. I think it would not be difficult to implement one of the standard search path functionalities; pretty sure R must have low-level support for that already; although I can there would be some complexity, as each module internally would need to know where it came from.  I can see this would not be high on your list of priorities. 
Reply all
Reply to author
Forward
0 new messages