DataStrategist / ShinyTester

An R package to help debug Shiny apps during the process itself.
29 stars 3 forks source link

Incorrectly reads # chunks #13

Closed DataStrategist closed 7 years ago

DataStrategist commented 7 years ago

We should not read chunks that are behind a #, but for now it does. The closest I got was this: str_extract_all(b, "\\#{0,4} *[a-zA-Z0-9\\._]+ *\\<\\- *[a-zA-Z0-9\\._]+?\\(\\{.+?\\}\\)", simplify = F) %>% .[[1]]

But it reads the ## from the line above and is therefore useless. I think the only way to resolve this is to use another method to import the files than read_file.... cause read_file gets rid of newspaces, which makes it impossible to figure out if a hashtag is at the beginning of the sentence or not.