Skip to content

Figure-related YAML chunk options are ignored for the inline preview #12305

Closed as not planned

Description

@netique

System details

RStudio Edition : Desktop
RStudio Version : RStudio 2022.12.0-preview+314 "Elsbeth Geranium" Preview (f3eb68a11735d56130ea51cc72f96fb6d2bb7852, 2022-11-05) for macOS Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) RStudio/2022.12.0-preview+314 Chrome/102.0.5005.167 Electron/19.1.3 Safari/537.36
OS Version.     : macOS Ventura 13.0
R Version.      : 4.2.2 

Steps to reproduce the problem

  1. create a .qmd document in any format
  2. use YAML-style chunk option to change any figure setting like #| fig-asp: 1.5
  3. run all chunks and "knit" the document
  4. observe that the plot in the editor completely ignores any figure-related settings, whereas the rendered document is fine

Snímek obrazovky 2022-11-07 v 18 59 56

Describe the problem in detail

The plot (no matter if in Source or Visual mode) in-line preview ignores any YAML-style figure-related chunk option.

Describe the behavior you expected

The plot in-line preview should reflect the chunk option.

  • I have read the guide for submitting good bug reports.
  • I have installed the latest version of RStudio, and confirmed that the issue still persists.
  • If I am reporting an RStudio crash, I have included a diagnostics report.
  • I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.

Activity

  1. added
    new
    on Nov 7, 2022
  2. ronblum commented on Nov 18, 2022

    @ronblum
    Contributor

    @netique Thank you for raising the issue! I can reproduce it in:

    • RStudio Desktop 1.4.1743 on MacOS 13
    • RStudio Desktop 2022.12.0-preview+330 on MacOS3
    • RStudio Server 2022.12.0-preview+330 on Ubuntu 20.04.5 via Chrome on MacOS 13

    I believe this is the same bug as #4521, so I'm closing this one as duplicate and nothing it in there.

  3. added and removed
    new
    on Nov 18, 2022
  4. netique commented on Nov 18, 2022

    @netique
    ContributorAuthor

    @ronblum I am sorry I mixed two issues into one. This is not a duplicate of #4521, that issue is hopefully solved by my PR #12324 (to be merged in cherry-blossom). This issue is about the YAML-style chunk options that are not picked at all.

    I have just edited the issue description to be more focused.

  5. ronblum commented on Nov 18, 2022

    @ronblum
    Contributor

    Ugh, thank you for putting me on the right path! I'll reopen this issue.

  6. cderv commented on Mar 16, 2023

    @cderv
    Collaborator

    Just for reference, a bunch of issues regarding plot should be dealt with and this seems related : #12740

  7. vancleve commented on Jul 13, 2023

    @vancleve

    Same as this issue? #11708

  8. jgutman commented on Oct 16, 2023

    @jgutman
    Contributor

    @vancleve @netique @andrewheiss I believe this is a duplicate of #11708 which we just closed in the recent RStudio daily builds, if you'd like to test that out and confirm if the issue is resolved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions