Skip to content

flush.console() does not seem to work  #8040

@gaborcsardi

Description

@gaborcsardi

System details

RStudio Edition : desktop
RStudio Version : 1.4.867
OS Version      : macOS 10.14.6
R Version       : 4.0.2

Steps to reproduce the problem

RUn this:

fun <- function() { 
  cat("select the file in the dialog box\n")
  flush.console()
  file.choose()
}
fun()

Describe the problem in detail

flush.console() is supposed to flush the console buffer, so the in the code above the cat()-ed text should appear, before the file.choose() dialog appears.

Describe the behavior you expected

I expected the cat()-ed text to appear in the console before the file chooser dialog.

  • 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 a 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions