-
Notifications
You must be signed in to change notification settings - Fork 128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support R session requests by hosting a tcp server #1394
base: master
Are you sure you want to change the base?
Conversation
…nding command by vscode
2cc2504
to
6f6199d
Compare
…even when we have file system error on previous lock file
R/session/vsc.R
Outdated
cat(get_timestamp(), file = plot_lock_file) | ||
if (!is.na(request_tcp_connection)) { | ||
tryCatch({ | ||
plot_file_content <- readr::read_file_raw(plot_file) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does readr::read_file_raw()
behave differently from readBin(file, file.size(file))
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe readBin(file, file.size(file))
is good enough so that we don't have to introduce readr
as a new dependency.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe
readBin(file, file.size(file))
is good enough so that we don't have to introducereadr
as a new dependency.
You need to specify the correct encoding parameters, and I'm unable to make this work with jsonlite::base54_enc function with readBin
.
… the new R indentation
Closes #1359
Fixes #1391
Features:
init.R
after R session init (and connect by it on pressing the status icon when opening a new terminal): Connect on already active R session viasource("~/.vscode-R/init_late.R"); .vsc.attach(host="YOUR_HOST", port = YOUR_PORT);
. (since 873af37).vsc.detach
to APINot Planned: