on_load in reticulate import doesn't get called

I am doing the following:

> sys <- reticulate::import("sys", delay_load=list(on_load = function(){message(3)}))

it immediately shows that the module is loaded and when i type sys in rstudio, i dont see 3 being printed on the console. How does on_load work ?

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.