fork download
  1. myText <- c("# Re-loading pkgdown while it's running causes weird behaviour with # the context cache don't",
  2. "# Needs to handle NA for desc::desc_get()",
  3. '# Update href of toc anchors , use "-" instead "."',
  4. "# Keep something$col or here_you::must_stay")
  5. trimws(gsub("\\s{2,}", " ", gsub("(?:\\w+::\\w+(?:\\(\\))?|\\p{L}+(?:[-'_$]\\p{L}+)*)(*SKIP)(*F)|[^\\p{L}\\s]", "", myText, perl=TRUE)))
Success #stdin #stdout 0.24s 39776KB
stdin
Standard input is empty
stdout
[1] "Re-loading pkgdown while it's running causes weird behaviour with the context cache don't"
[2] "Needs to handle NA for desc::desc_get()"                                                  
[3] "Update href of toc anchors use instead"                                                   
[4] "Keep something$col or here_you::must_stay"