I've noticed that .onLoad()
functions inside dplyr and googlesheets both return NULL invisibly: invisible()
Why is this the case?
I've noticed that .onLoad()
functions inside dplyr and googlesheets both return NULL invisibly: invisible()
Why is this the case?
You would need to ask the people writing that code to be sure. My guess is that it is a note for future code readers that "this function does not return anything useful".
I am pretty sure that it does not matter at all, R does not use the return value of .onLoad()
for anything, as far as I can tell. It is called here:
Thanks for your reply and sharing the source code, Gabor. I was just curious about both dplyr and googlesheets returning NULL and I guess it was a personal choice, not really a technical choice.
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
If you have a query related to it or one of the replies, start a new topic and refer back with a link.