r-lib / revdepcheck

R package reverse dependency checking
https://revdepcheck.r-lib.org
Other
102 stars 31 forks source link

cloud_check() gives an error if revdep_packages is size 1 #296

Closed wch closed 2 years ago

wch commented 3 years ago

When I try to run cloud_check() for a single reverse dependency of r-lib/memoise@fb66ecd, I got this error: revdep_package list must be greater than one.

> cloud_check(revdep_packages = 'gWidgets2tcltk')
✓  checking for file ‘/Users/winston/Dropbox/Projects/memoise/DESCRIPTION’ ...
─  preparing ‘memoise’: (1.6s)
✓  checking DESCRIPTION meta-information ...
─  checking for LF line-endings in source and make files and shell scripts (407ms)
─  checking for empty or unneeded directories
─  building ‘memoise_1.1.0.9001.tar.gz’

✓ Creating cloud job `job_name`: 'e5ac732d-3160-4868-84bb-90dfb6fcafbc'
ℹ Uploading /Users/winston/Dropbox/Projects/memoise_1.1.0.9001.tar.gz
✓ Uploaded /Users/winston/Dropbox/Projects/memoise_1.1.0.9001.tar.gz
ℹ Spawning batch job for cloud job `job_name`: 'e5ac732d-3160-4868-84bb-90dfb6fcafbc'
Error: Cloud error (422): Unprocessable Entity (WebDAV; RFC 4918)
Message: revdep_package list must be greater than one.

When I gave it an additional package to check, it worked fine.

jimhester commented 3 years ago

AWS batch jobs have to have more than one job, so this is a limitation we cannot avoid, but we should probably have a more useful error message.