Search code examples
rroxygen2

roxygenize: Cannot open the connection


I'm having trouble roxygenizing a package. It was last working several months ago and I haven't checked since, so not sure if a snippet of code I added broke it, if my system's configuration changed, or if roxygen2 changed.

I've tried calling it through devtools::document, in a --vanilla R sesssion with roxygen2::roxygenize('taRifx') from the directory above it, roxygenize('.') from the project base directory, tried running as root in case it was a permissions thing, etc.

Here's the RStudio version:

==> roxygenize('.', roclets=c('rd'))

* checking for changes ... ERROR

Error in file(con, "r") : cannot open the connection

Package code is here:

https://github.com/gsk3/taRifx

How do I fix this?


Solution

  • You'll need to change line 1242 of the Rfunctions.R file to @examples instead of @example. For proper formatting you'll also need to change the @ in email addresses to @@.