Bioconductor / sweave2rmd

A project for converting Bioconductor Sweave documents to Rmd
Creative Commons Attribution Share Alike 4.0 International
8 stars 20 forks source link

Evaluate use of Rnw2Rmd #45

Closed jwokaty closed 1 year ago

jwokaty commented 1 year ago

Let's evaluate if we can use https://github.com/LiNk-NY/Rnw2Rmd for conversions. We could do this a few ways, perhaps taking performing a conversion on an Rnw we've done before and comparing that to the method suggested by Martin to see which is closer to the final .Rmd. It might also be valuable to look at the conversion of a complex vignette.

jwokaty commented 1 year ago

@LiNk-NY Do you think it would be possible to have @BerylKanali help with the automations or it's something we could work on together? It's something @mtmorgan also brought up in #35 and it would benefit the project.

LiNk-NY commented 1 year ago

Let's evaluate if we can use https://github.com/LiNk-NY/Rnw2Rmd for conversions. We could do this a few ways, perhaps taking performing a conversion on an Rnw we've done before and comparing that to the method suggested by Martin to see which is closer to the final .Rmd. It might also be valuable to look at the conversion of a complex vignette.

The Rnw syntax is expansive and this package does not perform a complete translation but it works for simple vignettes like that in UniProt.ws. My intention for the package is to see the viability of integrating pandoc lua filters and to clean up via R.

Yes, certainly Beryl can contribute. Pull requests are welcome. Note that if the lua filters are implemented, my guess is that the codebase will change significantly but that is still to be seen.

jwokaty commented 1 year ago

We currently use pandoc to automate some of the process. It's not perfect, but that's why we wanted to create lua filters as Martin had also suggested to us. I think we're doing or will be doing similar work.

LiNk-NY commented 1 year ago

Ah I see, perhaps we can create a repository with all the lua filters.

mtmorgan commented 1 year ago

A Lua filter for BiocStyle commands and Sweave code chunks <<...>>= ... @ is in this pull request and can be invoked with Rnw2Rmd::Rnw2RmdPandoc(); see the help page ?Rnw2RmdPandoc.