Comments (4)
I can reproduce this also on Linux if I send the line containing #' \donttest{
for evaluation by R, for example by moving to that line and pressing <localleader>l
. In order to evaluate R code in the example section, nvim-R has to strip the roxygen comment #'
. And the remaining \donttest{
syntax is not R code, which is why R complains about an unexpected symbol. I think you should be fine if you just don't include the lines containing #' \donttest{
and #' }
in the region you send to R for evaluation.
from nvim-r.
Thank you for the help, @jranke !
from nvim-r.
Not sending the roxygen comments is obviously a possibility. But roxygen comments are standards in all CRAN Packages, and they are inside the routines. So this is quite inconvenient. I think it would be better for Nvim-R to be able to cope with correct roxygen comments.
from nvim-r.
@Dulohan, your contribution is welcome. You can do a pull request implementing your suggestion in VimScript for Nvim-R or in Lua for R.nvim. Unfortunately, I can no longer spend as much time as I did in the past implementing features that I will never use. And, in my opinion, we have other missing features deserving more attention, such as a debugger adapter, better support for Quarto documents, perhaps integration with httpgd
, etc. Unfortunately, I don't have time for them either.
from nvim-r.
Related Issues (20)
- RMarkdown to PDF opens a new window every time. HOT 9
- Error detected while processing function ROnJobStdout HOT 23
- Implementing default location for the R Terminal HOT 1
- Manually killing pdf viewer prevents vim from opening it again HOT 3
- Regression: prompt with ANSI escape sequences HOT 6
- Autocomplete with non-loaded library HOT 5
- Nvim-R requires Tmux >=3.0 but 3.3a version installed HOT 6
- SendLineToR fails with error "unexpected numeric constant" HOT 3
- Fresh LunarVim install with Nvim-R exits with SIGABRT HOT 7
- `R_app`, `R_cmd` options are not respected in LunarVim HOT 7
- Large objects don't seem to be able to fill secondary lists with completions (<C-n><C-o>) HOT 5
- Autocomplete for function parameters stops working when R opens HOT 2
- `RQuarto()` should escape Windows path seperator before sending to R HOT 2
- Unknown function: nvim_set_option_value HOT 2
- No new features in Nvim-R
- Is it possible to change the indentation behavior after parenthesis to be the same as curly brace? HOT 3
- How to use Python in Quarto with Nvim-R HOT 3
- Announcement: stable and oldstable branches deleted
- Error on keyword completion HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nvim-r.