rhub icon indicating copy to clipboard operation
rhub copied to clipboard

PREPERROR on (a single) check_on_cran() only

Open CorradoLanera opened this issue 5 years ago • 3 comments

I have run check_on_cran() for {depigner} (if you need to inspect it, I am currently working on the branch release) obtaining a strange situation:

  • devtools::check() success locally on Debian 10 non-free KDE (Linux 4.19.0) R4.0.1.
  • CMD check passes on all the usethis::use_tidy_github_actions() (last log here)
  • my last call to check_on_cran():

The "ubuntu" error appears due to the impossibility to find libgit2 here; libssl-dev here and here; libssh2-1-dev here; and libxml2-dev here. Hence, xml2, openssl, httr, spelling, gh, telegram.bot, covr, and usethis cannot be installed.

Can I do something to manage that?

Output of the call

# remotes::install_github("r-hub/rhub") # rhub_1.1.1.9000
# cran_prep <- rhub::check_for_cran()
> cran_prep

── depigner 0.8.0: NOTE

  Build ID:   depigner_0.8.0.tar.gz-c6797200e0b34cc0a913cbefdb74a89b
  Platform:   Windows Server 2008 R2 SP1, R-devel, 32/64 bit
  Submitted:  58m 26s ago
  Build time: 3m 43.1s

> checking CRAN incoming feasibility ... NOTE
  Maintainer: 'Corrado Lanera <[email protected]>'
  New submission
  
  
  Possibly mis-spelled words in DESCRIPTION:
    Pignas (2:49)

0 errors ✓ | 0 warnings ✓ | 1 note x

── depigner 0.8.0: PREPERROR

  Build ID:   depigner_0.8.0.tar.gz-3863af68c4bb4d38adc8bda9b37ed22d
  Platform:   Ubuntu Linux 16.04 LTS, R-release, GCC
  Submitted:  58m 26s ago
  Build time: 33m 54.4s

> Build failed during preparation or aborted

[...]
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* creating tarball
packaged installation of ‘viridis’ as ‘viridis_0.5.1_R_x86_64-pc-linux-gnu.tar.gz’
* DONE (viridis)
* installing *source* package ‘Hmisc’ ...
** package ‘Hmisc’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
gcc -std=gnu99 -I"/usr/share/R/include" -DNDEBUG     -fpic  -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g  -c Hmisc.c -o Hmisc.o
gfortran  -fpic  -g -O2 -fstack-protector-strong  -c cidxcn.f -o cidxcn.o
gfortran  -fpic  -g -O2 -fstack-protector-strong  -c cidxcp.f -o cidxcp.o
gfortran  -fpic  -g -O2 -fstack-protector-strong  -c hoeffd.f -o hoeffd.o
gcc -std=gnu99 -I"/usr/share/R/include" -DNDEBUG     -fpic  -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g  -c init.c -o init.o
gfortran  -fpic  -g -O2 -fstack-protector-strong  -c jacklins.f -o jacklins.o
gfortran  -fpic  -g -O2 -fstack-protector-strong  -c largrec.f -o largrec.o
gcc -std=gnu99 -I"/usr/share/R/include" -DNDEBUG     -fpic  -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g  -c mChoice.c -o mChoice.o
gfortran  -fpic  -g -O2 -fstack-protector-strong  -c maxempr.f -o maxempr.o
gcc -std=gnu99 -I"/usr/share/R/include" -DNDEBUG     -fpic  -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g  -c nstr.c -o nstr.o
gcc -std=gnu99 -I"/usr/share/R/include" -DNDEBUG     -fpic  -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g  -c ranksort.c -o ranksort.o
gfortran  -fpic  -g -O2 -fstack-protector-strong  -c rcorr.f -o rcorr.o
gcc -std=gnu99 -I"/usr/share/R/include" -DNDEBUG     -fpic  -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g  -c string_box.c -o string_box.o
gfortran  -fpic  -g -O2 -fstack-protector-strong  -c wclosest.f -o wclosest.o
gcc -std=gnu99 -shared -L/usr/lib/R/lib -Wl,-Bsymbolic-functions -Wl,-z,relro -o Hmisc.so Hmisc.o cidxcn.o cidxcp.o hoeffd.o init.o jacklins.o largrec.o mChoice.o maxempr.o nstr.o ranksort.o rcorr.o string_box.o wclosest.o -lgfortran -lm -lquadmath -L/usr/lib/R/lib -lR
installing to /home/docker/R/00LOCK-Hmisc/00new/Hmisc/libs
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded from temporary location
** checking absolute paths in shared objects and dynamic libraries
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* creating tarball
packaged installation of ‘Hmisc’ as ‘Hmisc_4.4-0_R_x86_64-pc-linux-gnu.tar.gz’
* DONE (Hmisc)
* installing *source* package ‘rms’ ...
** package ‘rms’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
gcc -std=gnu99 -I"/usr/share/R/include" -DNDEBUG     -fpic  -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g  -c init.c -o init.o
gfortran  -fpic  -g -O2 -fstack-protector-strong  -c lrmfit.f -o lrmfit.o
gfortran  -fpic  -g -O2 -fstack-protector-strong  -c mlmats.f -o mlmats.o
gfortran  -fpic  -g -O2 -fstack-protector-strong  -c ormuv.f -o ormuv.o
gfortran  -fpic  -g -O2 -fstack-protector-strong  -c robcovf.f -o robcovf.o
gcc -std=gnu99 -shared -L/usr/lib/R/lib -Wl,-Bsymbolic-functions -Wl,-z,relro -o rms.so init.o lrmfit.o mlmats.o ormuv.o robcovf.o -lgfortran -lm -lquadmath -L/usr/lib/R/lib -lR
installing to /home/docker/R/00LOCK-rms/00new/rms/libs
** R
** demo
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded from temporary location
** checking absolute paths in shared objects and dynamic libraries
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* creating tarball
packaged installation of ‘rms’ as ‘rms_6.0-0_R_x86_64-pc-linux-gnu.tar.gz’
* DONE (rms)

The downloaded source packages are in
	‘/tmp/RtmpMsaNzp/downloaded_packages’
Running `R CMD build`...
* checking for file ‘/tmp/RtmpMsaNzp/remotes12b5f5757d0/depigner/DESCRIPTION’ ... OK
* preparing ‘depigner’:
* checking DESCRIPTION meta-information ... OK
* checking for LF line-endings in source and make files and shell scripts
* checking for empty or unneeded directories
* looking to see if a ‘data/datalist’ file should be added
* building ‘depigner_0.8.0.tar.gz’
Installing package into ‘/home/docker/R’
(as ‘lib’ is unspecified)
ERROR: dependencies ‘telegram.bot’, ‘usethis’ are not available for package ‘depigner’
* removing ‘/home/docker/R/depigner’
Warning messages:
1: In i.p(...) : installation of package ‘xml2’ had non-zero exit status
2: In i.p(...) :
  installation of package ‘openssl’ had non-zero exit status
3: In i.p(...) : installation of package ‘httr’ had non-zero exit status
4: In i.p(...) :
  installation of package ‘spelling’ had non-zero exit status
5: In i.p(...) : installation of package ‘gh’ had non-zero exit status
6: In i.p(...) :
  installation of package ‘telegram.bot’ had non-zero exit status
7: In i.p(...) : installation of package ‘covr’ had non-zero exit status
8: In i.p(...) :
  installation of package ‘usethis’ had non-zero exit status
9: In i.p(...) :
  installation of package ‘/tmp/RtmpMsaNzp/file12b3da81dcf/depigner_0.8.0.tar.gz’ had non-zero exit status
> 
> 
> library(depigner)
Error in library(depigner) : there is no package called ‘depigner’
Execution halted
Build step 'Execute shell' marked build as failure


── depigner 0.8.0: NOTE

  Build ID:   depigner_0.8.0.tar.gz-7315478db2e7484798aa45c190ed66af
  Platform:   Fedora Linux, R-devel, clang, gfortran
  Submitted:  58m 26s ago
  Build time: 42m 16.5s

> checking CRAN incoming feasibility ... NOTE
  Maintainer: ‘Corrado Lanera <[email protected]>’
  
  New submission
  
  Possibly mis-spelled words in DESCRIPTION:
    Pignas (2:49)

0 errors ✓ | 0 warnings ✓ | 1 note x

CorradoLanera avatar Jun 11 '20 16:06 CorradoLanera

This is a problem in your package that you need to fix. See more here: https://www.mail-archive.com/[email protected]/msg05502.html

On Mon, Jun 15, 2020 at 11:21 AM Corrado Lanera [email protected] wrote:

From yesterday (I did not make any change to the code!), the situation evolved mutating the clear success on Fedora into a Warned https://builder.r-hub.io/status/depigner_0.8.0.tar.gz-482177e29d104e4f90e5ea911b7df54a success due to

  • checking Rd cross-references ... WARNING

Non-file package-anchored link(s) in documentation object 'pipe.Rd':

‘[magrittr]{%>%}’

Non-file package-anchored link(s) in documentation object 'start_bot_for_chat.Rd':

‘[usethis]{edit_r_environ}’

See section 'Cross-references' in the 'Writing R Extensions' manual.

Note: win build still have a clean success.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/r-hub/rhub/issues/387#issuecomment-644041799, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFBGQG2P7E5TLE6FGPWOJDRWXY2PANCNFSM4N3RWTUQ .

gaborcsardi avatar Jun 22 '20 13:06 gaborcsardi

I think your Ubuntu error is the same as this: https://github.com/r-hub/rhub/issues/369 You can't do much about it.

gaborcsardi avatar Jun 22 '20 13:06 gaborcsardi

Ok, thank you. I submitted the package including all the other tests and mentioned this issue. Thanks!

CorradoLanera avatar Jun 22 '20 22:06 CorradoLanera