Open jsr-p opened 5 months ago
I have a similar problem at VS Code. (also did the same steps)
I put a .Rprofile file at project folder, with devtools::load_all()
.
This workaround solves my linter problems, can you do the same?
@pit00 does not work for me; still getting the diagnostic message :/
This is not really a solution for your problem, but just namespace the .data
object.
With:
my_fun <- function(df, col) {
.data <- rlang::.data
df |> dplyr::mutate(
x = .data[[col]]
)
}
This could potentially also bring some safety regarding namespace collisions.
Hi
I am developing a package where I use
.data
fromrlang
together withdplyr
. The code snippet iswith
NAMESPACE
file:When running
However, using the
lintr::lint_package()
inside RStudio I do not get any errors.rlanguageserver
inside Neovim gives the following error:My
sessionInfo()
is:and I am using the newest r-languageserver:![image](https://github.com/REditorSupport/languageserver/assets/49307119/1b301608-a19b-4901-909f-884f2beab924)
The only way that I can make it go away is by writing in my
.lintr
file:but how can I do it correctly :D?
Thank you!