Skip to content

Support edit() similar to RStudio #8396

@sher-l

Description

@sher-l

System details:

Positron and OS details:

version: Positron Version: 2025.06.0 (system setup) build 167
Code - OSS Version: 1.100.0
Commit: e7e5d55
Date: 2025-05-29T21:27:54.586Z
Commit: 34.5.1
Date: 132.0.6834.210
Electron: 20.19.0
ElectronBuildId: 13.2.152.41-electron.0
Chromium: Windows_NT x64 10.0.19045

Describe the issue:

R 4.2.3 Seurat 5.1.0

When I try to modify Seurat's internal functions using edit.

DoHeatmap1 <- edit(Seurat::DoHeatmap())
Error in DefaultAssay():
! argument "object" is missing, with no default
Hide Traceback

  1. ├─utils::edit(Seurat::DoHeatmap())
  2. └─Seurat::DoHeatmap()
  3. ├─assay %||% DefaultAssay(object = object)
  4. └─SeuratObject::DefaultAssay(object = object)

Even if I directly copy the DoHeatmap function content and reassign it to DoHeatmap1, it still doesn't work like in RStudio and throws an error.

Error in Melt():
! could not find function "Melt"
Hide Traceback

  1. └─global DoHeatmap1(...)
  2. └─global SingleRasterMap1(...)

Expected or desired behavior:

Please provide F2 and edit functionality similar to RStudio, or if it already exists, please let me know where to find it.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions