Closed joelgombin closed 7 years ago
In that case the plumber.R script would be executed from /var/plumber/cmarue
(where it lives), right?
Ok I changed the path to the datafile to an absolute path and it works. I'll leave the issue open, because IMHO the R process should be launched from where the plumber.R file is. Using relative path really helps the development process (and is, I think, a good practice).
Hi. So you're saying that the Cannot open data source ./PLU/PLU_PSMV_PROTCOM.shp
path is something in your code and that when you changed it to an absolute path it worked?
Yeah, I would have expected a relative path to work, too. If you can confirm that that's the behavior you're seeing I'll take a look to see why the working directory isn't set properly.
Yes, I can confirm this.
Great. If you install from sections and then redeploy the API, relative paths should now work.
*install from devtools
It does indeed work. Thanks for the quick fix!
I'm using
do_deploy_api
to deploy an API on a DO droplet. I get this output:But my API works locally, and if I ssh to my droplet and execute the
plumber.R
script, everything works fine. Any idea of what might be going wrong? Unfortunately the error message ("Open failed") here is not very informative.