Skip to content

"Run all" command does not work anymore #11313

Closed

Description

@castellco

System details

RStudio Edition : Desktop
RStudio Version : 2022.02.2-485
OS Version      :  Windows 11
R Version       : 4.2.0

Steps to reproduce the problem

  • Open a RMarkdown document with some chunks. Mine has ~30 chunks.
  • Click the Run all, Run chunks below, Restart R and run all chunks, etc. buttons.

Describe the problem in detail

Nothing happens when clicking those buttons. The only ones that do work are the "Run current chunk" anad "Run next chunk".

Describe the behavior you expected

They should work as expected.

  • [ x] I have read the guide for submitting good bug reports.
  • [x ] 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.
  • [ x] I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
    diagnostics-report.txt

Activity

  1. kevinushey commented on May 27, 2022

    @kevinushey
    Collaborator

    Thanks for the bug report! I wasn't able to reproduce using the latest daily builds, with the following document:

    ---
    title: "Chunks"
    output: html_document
    ---
    
    ```{r}
    1
    ```
    
    ```{r}
    2
    ```
    
    ```{r}
    3
    ```
    

    For posterity:

        RStudio Edition : 2022.6.0.421
        RStudio Version : Desktop [Open Source]
        OS Version      : macOS Monterey 12.4
        R Version       : R version 4.2.0 (2022-04-22)
    

    Are you able to provide any other detail that might help us reproduce the problem locally? (Perhaps the issue is somehow specific to the content in your R Markdown document?)

  2. Robinlovelace commented on May 30, 2022

    @Robinlovelace

    On the latest version if there is a block like the following it fails for me:

    ```{block2 02-spatial-data-5, type="rmdnote"}
    Take care when using the word 'vector' as it can have two meanings in this book:
    geographic vector data and the `vector` class (note the `monospace` font) in R.
    The former is a data model, the latter is an R class just like `data.frame` and `matrix`.
    Still, there is a link between the two: the spatial coordinates which are at the heart of the geographic vector data model can be represented in R using `vector` objects.
    ```
    
  3. ronblum commented on May 31, 2022

    @ronblum
    Contributor

    @gisselacornejocastellano and @Robinlovelace A couple of questions:

    1. Did this work in previous versions of R and/or RStudio, and if so, which ones?
    2. Is this only an issue when using block2 or also with r or other chunk types?
    3. I hate to ask, but I've never used block2 before—is there any setup I need to perform, or is this part of a project type such as bookdown etc., to get it to work? I can see that the running the chunk is attempted when run on its own or with any of the "run all" options, but I get:
      Warning: don't know how to handle 'block2' engine output
  4. added
    info needed
    on May 31, 2022
  5. Robinlovelace commented on May 31, 2022

    @Robinlovelace

    Did this work in previous versions of R and/or RStudio, and if so, which ones?

    Yes, not sure when the presumed regression happened.

    Not sure if it's an issue with other chunk types.

    And yes this is part of a bookdown workflow, another reproducible example that should be self-standing: https://github.com/Robinlovelace/geocompr/blob/main/02-spatial-data.Rmd

  6. Robinlovelace commented on May 31, 2022

    @Robinlovelace

    Question for you @ronblum can you not reproduce the error? Noting the repro needed tag but I think the above constitutes a reprex of sorts...

  7. ronblum commented on May 31, 2022

    @ronblum
    Contributor

    The tag "repro needed" really means, "more information needed," or more fully, "internal RStudio employees can't reproduce it, so a reprex or other information is needed from the original poster or anyone in the user community." But that would be a very long tag. 😄

  8. Robinlovelace commented on May 31, 2022

    @Robinlovelace

    Makes sense and thanks for the clarification. But if you try downloading and opening this file: https://github.com/Robinlovelace/geocompr/blob/main/02-spatial-data.Rmd

    I think you and colleagues will be able to reproduce it. I guess that's what the tag means: someone should give it a spin and report back when they have!

  9. added and removed
    info needed
    on May 31, 2022
  10. ronblum commented on May 31, 2022

    @ronblum
    Contributor

    I don't run into the issue with the Rmd, either. I'll try building the book and see what happens, just to see if I can get block2 to work at all. I have to install a bunch of packages in different pages, though, which inspired me to file enhancement request #11321.

  11. Robinlovelace commented on May 31, 2022

    @Robinlovelace

    Interesting... Will re-test on latest version of RStudio here and share the vid in case that would be useful.

  12. Robinlovelace commented on May 31, 2022

    @Robinlovelace

    Illustration of the issue I'm hitting, may be different from the one originally described but confident that it's reproducible, unless it's been fixed in more recent versions:

    Peek 2022-05-31 17-21

  13. 20 remaining items

  14. Robinlovelace commented on Jun 17, 2022

    @Robinlovelace

    And, to my surprise, previous versions of RStudio.

  15. Robinlovelace commented on Oct 15, 2022

    @Robinlovelace

    Nudge on this, it's a substantial bug. Hopeful for a fix before 2023-02-01, as per milestone, but great to see a timeline for this.

  16. self-assigned this
    on Nov 17, 2022
  17. removed their assignment
    on Aug 29, 2023
  18. modified the milestones: Backlog-1, Later on Oct 17, 2023
  19. JacobBumgarner commented on Jun 15, 2024

    @JacobBumgarner

    FYI, the rstudio-server-2024.04.2-764-amd64 RStudio update fixed this problem for me.

  20. gtritchie commented on Jan 17, 2025

    @gtritchie
    Member

    This was fixed in 2024.12.0. See #11995 (issue) and #15139 (PR) for details.

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions