Closed jcrodriguez1989 closed 2 weeks ago
You're absolutely right, I totally forgot the Rmd/Qmd use case. I will think about working alternatives.
@luisDVA , please let me know if the current changes fix the markdown issues. I don't use Rmd and Qmd that much, so probably my tests are not that extensive.
In this version, the R version should be added as the first line of the first ```{r} chunk, if there is no such chunk, it will add it as the header of the file. Because I am not aware of a way of detecting wether an unsaved file is a markdown or script file.
good idea! this is a nice approach, but in Quarto inserting comments this way may prevent the code block options from being applied.
for example: if the "hashpipe" operator is used to specify any options, adding anything before this section will void the options.
```{r}
#| include: false
#| eval: true
...
I wonder if the regex can be changed to paste the annotations after the last `#|` in the first chunk 🤔
@luisDVA , good note! Let me know if it works correct with these last changes.
works great now with all formats. gracias y aguante Córdoba
Develops https://github.com/luisDVA/annotater/issues/17 At the beginning of the file to annotate, it will add: