I'm trying to use the render statement to create an HTML report from an R Markdown file. But following error is encountered:
Error in gregexpr("(?<!(^|\n)
)`r[ #]([^`]+)\\s*`", "---\ntitle: \"Untitled\"\noutput:\n html_document: default\n \n---\n", : invalid regular expression '(?<!(^| ))
r[ #]([^]+)\s*`', reason 'Invalid regexp' Calls: <Anonymous> ... parse_inline -> <Anonymous> -> re_call -> do.call -> gregexpr Execution halted
I am not able to use the 'Knit to HTML' button either - same error. I tried to search the error up online but could not identify anything that point to the cause of the problem. Does anyone know? Really appreciate the help!