Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

roxygenize: Cannot open the connection

Tags:

r

roxygen2

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?

like image 300
Ari B. Friedman Avatar asked May 29 '14 03:05

Ari B. Friedman


1 Answers

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 @@.

like image 149
Dason Avatar answered Oct 01 '22 05:10

Dason