Skip to content

How to call a module inside a module when there is a global variable? #1101

Answered by ilyaZar
YonghuiDong asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @YonghuiDong

I was able to reproduce your example inside a clean golem-skeleton package, find the repo here:

https://github.com/ilyaZar/TestGolem

I fixed some errors along, mostly passing arguments correctly from module to module. Have a look at the specific git-commits, the comments show what I added in a historic sequence.

It does not match your example exactly, because it's a golem-based R package but maybe this helps finding you the error (whatever your true code-base is; I assume that the above is a simplified reprex).

Let me know if it works for you or post the exact error message that could be useful too.

Remark::
Not directly related to your problem, but still you may have a l…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@YonghuiDong
Comment options

Answer selected by YonghuiDong
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