nx10 / httpgd

Asynchronous http server graphics device for R.
https://nx10.github.io/httpgd
GNU General Public License v2.0
368 stars 19 forks source link

.vsc.browser () is not found #133

Closed PMKmw closed 1 year ago

PMKmw commented 1 year ago

This function is not found Whenever I try to use it

When I try to use httpgd in VSCode And try to show the original httpgd viewer in a webpage in VS Code, in using this code : if (interactive() && Sys.getenv("TERM_PROGRAM") == "vscode") { if ("httpgd" %in% .packages(all.available = TRUE)) { options(vsc.plot = FALSE) options(device = function(...) { httpgd::hgd(silent = TRUE) .vsc.browser(httpgd::hgd_url(history = FALSE), viewer = "Beside") }) } }

In ~/.Rprofile It said "could not find function ".vsc.browser"