Skip to content

Canonical data viewer does not work #1724

Closed as duplicate
Closed as duplicate

Description

@zhizhongpu

Describe the bug

Running view(df) loads an ugly, pop-up data viewer instead of the canonical data viewer promised here.

Image

To Reproduce
Steps to reproduce the behavior:

  1. Go to an R script in VS Code / Open R terminal or Radian terminal
  2. run View(mtcars)
  3. See the ugly Window in the screenshot popping up outside VS Code

Can you fix this issue by yourself? (We appreciate the help)

No

Please attach setting.json

setting.json

{
    "workbench.editorAssociations": {
        "*.ipynb": "jupyter.notebook.ipynb"
    },
    "security.workspace.trust.untrustedFiles": "open",
    "latex-workshop.latex.autoBuild.run": "never",
    "editor.suggestSelection": "first",
    "terminal.integrated.inheritEnv": false,
    "jupyter.interactiveWindow.textEditor.executeSelection": true,
    "interactiveWindow.executeWithShiftEnter": true,
    "editor.minimap.enabled": false,
    "[python]": {
        "editor.defaultFormatter": "charliermarsh.ruff"
    },
    "jupyter.runStartupCommands": [
        "import os\n",
        "def cdfc(path='c:/gh/Faculty'):\n",
        "    os.chdir(path)\n",
        "    print(f'Changed directory to: {os.getcwd()}')\n",
    ],
    "accessibility.signals.lineHasError": {
        "sound": "off",
        "announcement": "off"
    },
    "accessibility.signals.lineHasWarning": {
        "sound": "off",
        "announcement": "off"
    },
    "accessibility.signals.lineHasFoldedArea": {
        "sound": "off",
        "announcement": "off"
    },
    "accessibility.signals.lineHasBreakpoint": {
        "sound": "off",
        "announcement": "off"
    },
    "accessibility.signals.lineHasInlineSuggestion": {
        "sound": "off"
    },
    "accessibility.signals.terminalQuickFix": {
        "sound": "off",
        "announcement": "off"
    },
    "accessibility.signals.onDebugBreak": {
        "sound": "off",
        "announcement": "off"
    },
    "accessibility.signals.noInlayHints": {
        "sound": "off",
        "announcement": "off"
    },
    "accessibility.signals.taskCompleted": {
        "sound": "off",
        "announcement": "off"
    },
    "accessibility.signals.taskFailed": {
        "sound": "off",
        "announcement": "off"
    },
    "accessibility.signals.terminalCommandFailed": {
        "sound": "off",
        "announcement": "off"
    },
    "accessibility.signals.terminalBell": {
        "sound": "off",
        "announcement": "off"
    },
    "accessibility.signals.notebookCellCompleted": {
        "sound": "off",
        "announcement": "off"
    },
    "accessibility.signals.notebookCellFailed": {
        "sound": "off",
        "announcement": "off"
    },
    "accessibility.signals.diffLineInserted": {
        "sound": "off"
    },
    "accessibility.signals.diffLineDeleted": {
        "sound": "off"
    },
    "accessibility.signals.diffLineModified": {
        "sound": "off"
    },
    "accessibility.signals.chatRequestSent": {
        "sound": "off",
        "announcement": "off"
    },
    "accessibility.signals.chatResponseReceived": {
        "sound": "off"
    },
    "accessibility.signals.clear": {
        "sound": "off",
        "announcement": "off"
    },
    "editor.accessibilitySupport": "off",
    "accessibility.signals.progress": {
        "sound": "off",
        "announcement": "off"
    },
    "update.showReleaseNotes": false,
    "terminal.integrated.profiles.linux": {
        "bash": {
            "path": "bash",
            "icon": "terminal-bash"
        },
        "zsh": {
            "path": "zsh"
        },
        "fish": {
            "path": "fish"
        },
        "tmux": {
            "path": "tmux",
            "icon": "terminal-tmux"
        },
        "pwsh": {
            "path": "pwsh",
            "icon": "terminal-powershell"
        }
    },
    "git.openRepositoryInParentFolders": "always",
    "[latex]": {
        "editor.defaultFormatter": "James-Yu.latex-workshop"
    },
    "window.autoDetectColorScheme": true,
    "workbench.startupEditor": "none",
    "[bibtex]": {
        "editor.defaultFormatter": "James-Yu.latex-workshop"
    },
    "latex-workshop.linting.chktex.enabled": true,
    "terminal.integrated.enableMultiLinePasteWarning": false,
    "markdown-preview-enhanced.enablePreviewZenMode": true,
    "editor.autoClosingBrackets": "never",
    "git.autofetch": true,
    "[r]": {},
    "dataWrangler.outputRenderer.columnInsights.displayByDefault": true,
    "dataWrangler.panels.displayOnTabFocus": false,
    "github.copilot.nextEditSuggestions.enabled": true,
    "jupyter.askForKernelRestart": false,
    "security.workspace.trust.enabled": false,
    "security.workspace.trust.emptyWindow": false,
    "chat.viewSessions.orientation": "stacked",
    "[json]": {
        "editor.defaultFormatter": "esbenp.prettier-vscode"
    },
    "[r]": {
        "editor.defaultFormatter": "Posit.air-vscode"
    },
    "files.associations": {
        "*.qsf": "json"
    },
    "claudeCode.preferredLocation": "panel",
    "workbench.preferredLightColorTheme": "Visual Studio Light",
    "[jsonc]": {
        "editor.defaultFormatter": "vscode.json-language-features"
    },
    "testing.resultsView.layout": "treeLeft",
    "extensions.ignoreRecommendations": true,
    "githubPullRequests.pullBranch": "never",
    "explorer.copyRelativePathSeparator": "/",
    "claudeCode.initialPermissionMode": "plan",
    "claudeCode.useCtrlEnterToSend": true,
    "window.commandCenter": false,
    "chat.titleBar.openInAgentsWindow.enabled": false,
    "files.exclude": {
        "__pycache__/": true,
        ".cursor": true,
        ".pytest_cache": true,
        ".Rhistory": true,
        ".ruff_cache/": true,
        ".venv/": true,
        "**.Rproj**": true,
        "**/__pycache__/**": true,
        "**/**.lyx~": true
    },
    "jupyter.interactiveWindow.creationMode": "perFile",
    "diffEditor.experimental.showMoves": true,
    "chat.tools.urls.autoApprove": {
        "https://code.visualstudio.com": true,
        "https://github.com/microsoft/vscode/wiki/*": true,
        "https://raw.githubusercontent.com/al-org-dev/al-folio-core/main/_includes/head.liquid": {
            "approveRequest": false,
            "approveResponse": true
        }
    },
    "chat.tools.terminal.autoApprove": {
        "ForEach-Object": true
    },
    "r.rterm.windows": "C:\\Users\\peace\\.local\\bin\\radian.exe",
    "r.rterm.option": [
        "--no-save",
        "--no-restore",
        "radian"
    ],
    "r.bracketedPaste": true,
    "ruff.path": [
        "[\"C:\\Users\\peace\\AppData\\Roaming\\uv\\tools\\ruff\"]"
    ],
    "terminal.integrated.initialHint": false,
    "r.lsp.debug": true,
    "r.lsp.diagnostics": false
}

Expected behavior
The canonical data viewer launches

Environment (please complete the following information):

  • OS: Windows 11
  • VSCode Version: 1.132.1
  • R Version: 4.6.1
  • vscode-R version: 2.8.8

Activity

  1. CocafeDevBrew commented on Aug 22, 2026

    @CocafeDevBrew

    Did you install httpgd?

    I'm facing the same issue on Mac OS Tahoe 26.6.2 with both plots and data views being rendered by quartz. But i have languageserver and httpgd installed, as one should.

  2. zhizhongpu commented on Aug 22, 2026

    @zhizhongpu
    Author

    Did you install httpgd?

    I did not but after I installed it and restarted it did not make any difference.

    Image
  3. CocafeDevBrew commented on Aug 22, 2026

    @CocafeDevBrew

    So, this solution worked for me: #1696 (comment)
    You need to find the init.R of the vscode-R extension. I can only assume where that would be on Windows:

    C:\Users\<YourUsername>\.vscode-R\init.R

    Paste this path in the search bar (center top) of your VSCode window, after entering your real username that is. If the file opens, modify its content according to the post I linked. Instead of deleting some lines entirely I would simply comment them out, but it should work either way.

  4. leanhdung1994 commented on Sep 18, 2026

    @leanhdung1994

    The non-invasive solution by @Skolmeister works well for me:

    if (interactive() && Sys.getenv("RSTUDIO") == "") {
      init_path <- file.path(
        Sys.getenv(if (.Platform$OS.type == "windows") "USERPROFILE" else "HOME"),
        ".vscode-R",
        "init.R"
      )
      source(init_path)
      .First.sys()
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions