posit-dev / posit-dev/connectapi
Feature request: render content with user-defined parameters
Nobody has claimed this yet.
- Dominant language
- R
- Stars
- 54
- Forks
- 27
- Avg merge
- 1d 3m
- Merged PRs (30d)
- 1
Description
In the Connect UI, it is possible to adjust parameters of a report and re-render it, without saving those parameters as a new Variant (Input panel > Run Report button). Is it possible to expose that ad-hoc render capability, with custom parameters, as a connectapi method?
In other words: rmarkdown::render() takes a params argument. Can connectapi's Variant$render() do the same?
As far as I know, Variant$render() only supports rendering a saved Variant. However, creating a new Variant is cumbersome and manual (cannot be done programmatically).
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by inspecting connectapi's Variant$render() entry point and compare its behavior with rmarkdown::render() and the params argument described in the issue. Done means an existing Variant can be rendered with ad-hoc custom parameters without requiring a newly saved Variant, with tests covering the behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- r
- Domain
- api, backend-api-design
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100