Continuing the discussion from Build package namespace dynamically during `.onLoad()`:
I've tried above example but keep getting errors when building the package.
When following @nwerth 's instructions (including creating the_py_module-py file) and then building the package I get the following error:
** byte-compile and prepare package for lazy loading
sh: line 1: 40436 Killed: 9 R_TESTS= '/Library/Frameworks/R.framework/Resources/bin/R' --no-save --no-restore --no-echo 2>&1 < '/var/folders/y7/wj3424xx4y3_4zsn044s7r5h0000gn/T//Rtmpdrg7zy/file9dec3f69381a'
ERROR: lazy loading failed for package ‘testPackage’
(also, if the the_py_module-py would include importing torch, does this has to be experssed or will it do tít automatiaclly?)
Any help is much appreciated!
John