Git Product home page Git Product logo

Comments (4)

jranke avatar jranke commented on August 13, 2024

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.

jalvesaq avatar jalvesaq commented on August 13, 2024

Thank you for the help, @jranke !

from nvim-r.

Dulohan avatar Dulohan commented on August 13, 2024

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.

jalvesaq avatar jalvesaq commented on August 13, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.