Skip to content

Module not found in box.path #324

Answered by klmr
bombusfragrans asked this question in Q&A
Discussion options

You must be logged in to vote

When you are setting your module search path to path/to/modules/R and loading modules via box::use(R/Data_Import), this means that the module Data_Import is searched in the path path/to/modules/R/R/. Note the nested R/R/ path!

Therefore, I suspect that your issue would be fixed if you adjust the module search path by removing the trailing "R".

In addition, I generally recommend to not use here::here() with ‘box’, because here::here() only works in very specific situations but fails in others. By contrast, box::file() always gives you the correct location of the currently running code.

In your particular case, this means running the following code inside your R Notebook:

options(box.path = b…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@bombusfragrans
Comment options

@bombusfragrans
Comment options

Answer selected by bombusfragrans
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants