Skip to content

Unable to analyze whole Rmd document #17

Open
@alapo

Description

@alapo

Hello,

I have spent the last few hours reading documentation on your package, I was intrigued to know if any development has occured on Issue #8; adding the functionality showing "line numbers" to gramr. When I run write_good_file("test.Rmd") on a larger document its nearly impossible to find the associated text in the Rmd.

I have tried to use the run_grammar_checker() function but I have noticed that this does not run the entire file. Possible due to the function performing grammar checks on code chunks. To reproduce the issue, add the lines of code shown below to test_multiple_lines.Rmd (which you can find in this repo here).

I am curious how other users use the package...do you run run_grammar_checker() on every paragraph within your Rmd file?

Any suggestions would be great. I would love to use this package while writing articles.

```{r setup, include=FALSE, echo=FALSE}
knitr::opts_chunk$set(fig.cap = TRUE,
                      fig.path = 'images/',
                      echo = FALSE,
                      warning = FALSE, 
                      message = FALSE,
                      include = TRUE,
                      dpi = 300,
                      crop = TRUE # This will remove the whitespace surrounding an image see here: https://bookdown.org/yihui/rmarkdown-cookbook/crop-plot.html
                      # The following chunks only work with PDF outputs
                      #fig.pos = 'H', # only works with PDFs
                      #fig.align = 'center', # only works with PDFs
                      #out.height="100%",  out.width="100%") # only works with PDFs
                      )
# Abstract

::: {custom-style="Email_Note"}
***Journal Instructions*** Original Investigations (Perioperative Medicine, Critical Care Medicine, Pain Medicine, and Education) require a structured abstract. It should be limited to 300 words. The structured abstract should contain four labeled paragraphs: Background, Methods, Results, and Conclusions. Abstracts may be the only part of an article which is read, and must stand alone from the body of the manuscript. In order to enhance comprehension, the use of nonstandard abbreviations or acronyms in the Abstract is not allowed.

A list of standard abbreviations accepted by the journal may be found at anesthesiology.pubs.asahq.org/DocumentLibrary/08302018_abbreviations.pdf

Review Articles and Special Articles require an unstructured, one- or two-paragraph summary of the key points of the article of 150 words or fewer.

Make sure the text of the Abstract in the manuscript file and in the system match exactly
:::

It should have been defined there. But it wasn't suddenly

When you click the **Knit** button a document will be generated that includes both content as well as the output of any embedded R code chunks within the document. You can embed an R code chunk like this:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions