Skip to content

usethis::edit_r_profile() doesn't launch .Rprofile #4415

Answered by juliasilge
brndngrhm asked this question in Q&A
Discussion options

You must be logged in to vote

Hmmmm, I can't reproduce this problem as usethis::edit_r_profile() works for me as expected. It looks like you are using or have in the past used the VSCode-R extension. That extension is not compatible with Positron, as we outline here. Can you check if that extension is installed, or if you have code somewhere that may be calling that extension? Double check that any code you have in your .Rprofile that is designed to support that extension is updated so that it does not run in Positron:

if (interactive() && Sys.getenv("RSTUDIO") == "" && Sys.getenv("POSITRON") == "") {
  ## code you use for better terminal behavior for R in VS Code
}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@brndngrhm
Comment options

Answer selected by brndngrhm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants