Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

anyone know why lintr is marking the first string of my jupyter r kernels in red?

screen shot of lintr marking my first character in red

screen shot of another example

i just set up R to work with Jupyter notebooks in vscode but it is marking the first string of my kernels in red.

The message I get is:

Failed to run diagnostics: ! error in callr subprocess
Caused by error:
! Full file exclusions must be character vectors of length 1. items: 1 are not! lintr

if i uninstall languageserver package then it disappears but vscode asks me to reinstall it and then it comes back how do i get rid of this?

like image 412
Matt Park Avatar asked Dec 20 '25 08:12

Matt Park


1 Answers

Try running the R code below to update the languageserver package to the latest development build:

install.packages("languageserver", repos = c(
    reditorsupport = "https://reditorsupport.r-universe.dev",
    getOption("repos")
))

See https://github.com/REditorSupport/vscode-R/issues/343 for reference. It seems like this error was fixed via REditorSupport/languageserver#610.

I had this same error and this worked for me.

like image 87
Daisu Avatar answered Dec 21 '25 23:12

Daisu



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!