Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Can't use PlumberStatic #156
Hi. Can I get more details on what's going wrong?
The docs you referenced are specifically for building an API programatically. If you're using the more conventional format of commenting on your functions, you might be looking for https://www.rplumber.io/docs/routing-and-input.html#static-file-handler instead
e.g. adding something like
should make the
I try to run the code in doc and get the error like this:
It should be worked, but actually not, I get 404 error when I visit http://127.0.0.1:8080/assets:
Here is my plumber.R:
Doh! Sorry, the export should be solved in #163.
I think the problem you're seeing now is related to the fact that Plumber doesn't offer directory indexes (would be a nice feature). So you won't see anything at the root of the directory, but you should see something if you go to: