powered by
Export a given submodule from the current module
export_submodule_(submodule)
character string of length 1 with the name of the submodule
# NOT RUN { # x/__init__.r: export_submodule('./foo') # x/foo.r: answer_to_life = function () 42 # Calling code can now use the above modules: x = import('x') x$answer_to_life() # returns 42 # }
Run the code above in your browser using DataLab