I have code in my repository in Github and I want to run the file from runkit.
The problem marks an error that cannot open the file:
Can anyone tell me what I am doing wrong?
I have code in my repository in Github and I want to run the file from runkit.
The problem marks an error that cannot open the file:
Can anyone tell me what I am doing wrong?
Hi there,
There’s a couple issue. First off, the URL you’ve given will download a bunch of GitHub HTML.
But more importantly, the function you’re using, loadSuiteScriptModule
, takes a file path, not a URL.
In order to use that particular function you need to download the file and write it to disk, then specify the file path.
Here is a working example:
-https://runkit.com/me1000/5d9bcfc0037bf8001a0635b0
Also, in the future, pasting the URL of the notebook is much easier to debug than a screenshot of your code without the output.
Hope that helps,
- Randy
Thanks Randy, you saved me.