revdepcheck icon indicating copy to clipboard operation
revdepcheck copied to clipboard

Error using `revdepcheck::revdep_check()` and `devtools::revdep_check()`

Open filipezabala opened this issue 3 years ago • 1 comments

I'm trying to upload my first CRAN package, but I'm stuck on checking all downstream/reverse dependencies.

I'm doing everything as the second edition of Hadley Wickham's book suggests. I solved all pending issues indicated by devtools::check(), however I'm not able to make the verification of reverse dependencies using the functions devtools::revdep_check() and revdepcheck::revdep_check() as suggested by Mr. Wickham.

With devtools::revdep_check() I have the following error:

> devtools::revdep_check()
Error: 'revdep_check' is not an object exported from 'namespace: devtools'

With revdepcheck::revdep_check() the following appears:

> revdepcheck::revdep_check(num_workers = 4)
── INSTALL ─────────────────────────────────────────────────────── 2 versions ──
Installing CRAN version of voice
Error: (converted from warning) package ‘voice’ is not available for this version of R

A version of this package for your version of R might be available elsewhere,
see the ideas at
https://cran.r-project.org/doc/manuals/r-patched/R-admin.html#Installing-packages

Running R 4.0.3 on macOS Catalina 10.15.7 also with all packages updated to latest CRAN releases.

> version
               _                           
platform       x86_64-apple-darwin17.0     
arch           x86_64                      
os             darwin17.0                  
system         x86_64, darwin17.0          
status                                     
major          4                           
minor          0.3                         
year           2020                        
month          10                          
day            10                          
svn rev        79318                       
language       R                           
version.string R version 4.0.3 (2020-10-10)
nickname       Bunny-Wunnies Freak Out     

I'm probably doing something wrong, but I can't figure out what it is. I also posted on this link, any help is welcome.

Bonus: When I tried to install via install.packages('revdepcheck', dep=T):

Warning message:
package ‘revdepcheck’ is not available for this version of R
A version of this package for your version of R might be available elsewhere,
see the ideas at https://cran.r-project.org/doc/manuals/r-patched/R-admin.html#Installing-packages

The solution was to install directly from GitHub:

devtools::install_github('r-lib/revdepcheck')

Best regards, fz

filipezabala avatar Dec 27 '20 19:12 filipezabala

With devtools::revdep_check() I have the following error: Error: 'revdep_check' is not an object exported from 'namespace: devtools'

The devtools package doesn't provide reverse dependency checking functions. You get this error because the revdep_check() function is not from the devtools package.

With revdepcheck::revdep_check() the following appears: Error: (converted from warning) package ‘voice’ is not available for this version of R

Reverse dependency checking is useful for if your package is on CRAN, of which it is not yet. A reverse dependency check will test if the changes you've made to your package on CRAN will break any packages also on CRAN which use it. In this case, you do not need to reverse dependency check your package since there are no reverse dependencies to check.

package ‘revdepcheck’ is not available for this version of R

You are getting this error (which is the same error as above) because the revdepcheck package is not on CRAN.

mitchelloharawild avatar Jun 03 '21 02:06 mitchelloharawild