usethis::create_package("foo", roxygen = FALSE)
devtools::install()
fails with
** building package indices
Error : '\.' is an unrecognized escape in character string starting ""^[^\."
ERROR: installing namespace metadata failed
because
|
write_over(path, 'exportPattern("^[^\\.]")') |
creates a namespace with text
$ cat NAMESPACE
exportPattern("^[^\.]")
The escaped . needs to be \\\\.
fails with
because
usethis/R/namespace.R
Line 19 in 582a3fa
The escaped
.needs to be\\\\.