posit-dev / posit-dev/connectapi

Feature request: render content with user-defined parameters

Open
#200 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

need connect feature
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.