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

Investigate possible use of styler #76

Closed jwokaty closed 10 months ago

jwokaty commented 1 year ago

Investigate possible use of styler. Install and try on a conversion to see if it will reduce of some the manual formatting tasks to achieve sweave2rmd style, such as textwidth = 80, blank line between start / end of code blocks and surrounding content, etc.

sonali8434 commented 1 year ago

To investigate the use of styler for automating some of the formatting tasks in the conversion from Sweave to R Markdown, you can follow these steps:

  1. Install the styler package in your R environment using the following command: install.packages("styler")
  2. Load the styler package into your R session: library(styler)
  3. To use this package Open RStudio and go to the "Addins" section in the top menu bar.Select the "Style Active File" option from the available addins.Once you choose "Style Active File," the styler package will automatically analyze and make formatting changes to the code chunks in your active file.

Summary: styler is used to update the formatting of code chunk only but we in our project needs additional formatting like textwidth = 80, blank line between start / end of code blocks and surrounding content, etc. Which is not actually handled by styler.

sonali8434 commented 1 year ago

@jwokaty close #76