Skip to content

Support for test_active_file in vscode #2615

@ghar1821

Description

@ghar1821

I'm moving away from rstudio towards vscode. Unfortunately, function like test_active_file still doesn't work on vscode. I guess it is because it relies on rstudioapi to detect what file is active.

This is the error message if i try to run test_active_file:

Error in rstudioapi::executeCommand("activateConsole", quiet = TRUE) : 
  This {rstudioapi} function is not currently implemented for VSCode.

The alternative is to use test_file, but even then the error persist. Plus, it was already deprecated post 2.4.0.

Happy to consider alternative way of running a test on just a single file that does not rely on rstudio.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions