Comments (10)
@slodge Could you describe how you would use it?
What would be the advantage/distinction compared to?
pr <- plumber::plumb(dir = ".")
Thank you
from plumber.
Our team would use it in the same way they use it in Shiny.
It would "just work" when deploying to Connect in the same way it does when they use it in Shiny.
from plumber.
Maybe a code example? It would help me understand what is required to build the feature you are referencing.
As I understand it, the loadsupport does the same thing as plumb dir + run?
What am I missing?
How does it relate to connect?
from plumber.
Sure....
File1 - plumber.R
library(plumber)
#* @apiTitle Plumber Example API
#* @apiDescription Plumber example description.
#* Do foo
#* @param msg The message to foo
#* @get /do
function(msg = "") {
foo(msg)
}
File 2 - support.R
foo <- function(m) {
m
}
Run locally in RStudio using "Run API" button:
from plumber.
Oh, I get it now. Seems simple enough.
from plumber.
Also... I don't think plumber::plumb(dir = 'Plumber/MulitFile/plumber/.') |> plumber::pr_run()
works either... I think that plumb stage only parses for endpoints?
(Learning as I go here)
from plumber.
Idea : Maybe also support hotreload when source file change on disk.
from plumber.
Idea : Maybe also support hotreload when source file change on disk.
Separate issue?
(Not saying it's a bad idea - just that neither the use case nor the implementation really overlap - suspect hotreload would require much more work, including javascript inside swagger front ends)
from plumber.
Idea : Maybe also support hotreload when source file change on disk.
Separate issue?
Yes, please.
from plumber.
This isn't a hugely important issue.
Respectfully closing.
from plumber.
Related Issues (20)
- R process not releasing memory; Want aggressive garbage collection HOT 1
- Set plumber options through env HOT 3
- Default `path` value in `session_cookie()`
- set parser failed with attempt to apply non-function
- Plumber is not releasing memory HOT 11
- How to add operationId in Plumber? HOT 4
- how to redirect to /docs/ not the /__docs__/?
- Parse rds could avoid hitting disk
- Endpoint with octet serializer which receives a file in the request freezes whole Plumber.R execution
- Swagger is locked when using the `checkAuth` filter example from docs
- New hook after route has been found but before it's been evaluated HOT 1
- npm package should be switched from `@apidevtools/swagger-cli` to `@redocly/cli`
- Json and csv serializers generate error with large amounts of data HOT 1
- fix request object table layout in routing vignette
- Support mounting using `pr_mount()` without a trailing slash
- `pr_set_error()` doesn't apply to endpoints defined inside `pr_mount()`
- HTTP server sent events HOT 2
- Plumber crashes when specifying port via environment variable
- Required parameter annotation HOT 1
- No suitable parser found to handle request body type application/vnd.ms-excel.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from plumber.