I have the following problem:
I want to write a vim command to render the current (.rmd) file I'm working on.
My attempt is the following:
I put this into my init.lua
vim.cmd('call nvim_create_user_command(\'Render\', \'! R -e \"rmarkdown::render("´realpath %´")\" \', {})')
notice that I change this (` = ´) for the example to view the code snippet properly
Okay so technically it's working ...
Thats the errorcode
Error: unexpected '/' in "rmarkdown::render(/"
The command is not recognize the "
aroud the path.
Would be glad if anyone come up with an idea