Re: Looking for help on R-cran-testthat testunit

Joseph Mingrone <[email protected]>
Newsgroups gmane.os.freebsd.devel.ports
Message-ID <[email protected]>
On Thu, 2025-08-14 at 18:05, Nuno Teixeira <[email protected]> wrote:

> Hello,

> Looking for help on R-cran-testthat testunits.
> Failure could be related to our ports framework and need more expertise
> here.

> All help is welcome,
> Thanks!

> https://github.com/r-lib/testthat/issues/2214#issuecomment-3188669439
> https://github.com/r-lib/testthat/issues/2214

Hello Nuno,

When I ran `make test`, it reported errors about missing packages, so I
locally added this to devel/R-cran-testthat/Makefile:

TEST_DEPENDS=	R-cran-covr>0:devel/R-cran-covr \
		ftp/R-cran-curl>0:ftp/R-cran-curl \
		R-cran-rmarkdown>0:textproc/R-cran-rmarkdown \
		R-cran-rstudioapi>0:devel/R-cran-rstudioapi \
		R-cran-S7>0:devel/R-cran-S7 \
		R-cran-shiny>0:www/R-cran-shiny \
		R-cran-usethis>0:devel/R-cran-usethis \
		R-cran-vctrs>0:devel/R-cran-vctrs \
		R-cran-xml2>0:textproc/R-cran-xml2

It still reported that utils, a built-in package, was missing.  After
investigating, I discovered that the DESCRIPTION file for the utils
package was not always installed.  That issue is now fixed as of
a8e266393d86d5f40045c03ee1cda64f323ce6c1.


Now `make test` says
[ FAIL 1 | WARN 12 | SKIP 132 | PASS 943 ]

That one error is related to the 3rd edition stuff that is mentioned in
the devel/R-cran-testthat/Makefile and described at:
https://testthat.r-lib.org/articles/third-edition.html.

Joe
signature.asc (application/pgp-signature, 987 B)
-----BEGIN PGP SIGNATURE-----

iQKkBAEBCgCOFiEEVbCTpybDiFVxIrrVNqQMg7DW754FAmirVkdfFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDU1
QjA5M0E3MjZDMzg4NTU3MTIyQkFENTM2QTQwQzgzQjBENkVGOUUQHGpybUBmcmVl
YnNkLm9yZwAKCRA2pAyDsNbvnkI3D/0SCIWDQFiZWRI9L5Gb86lK1o2pRuESYaVL
lMfpfucxbBV3TKmKmNFoGFfwAA0jk9xfxq6MRcLbgcElTRPgBDQaTHWRHaEqXDbr
Vdqy8xV4/YLUznmsZ8dX/PDCBefuVca2dtD2ybe3weEeGX+VuQuZnU6Cog2kiIBi
Wd/lUzPM1JtgNqiREdOvmQPzuEf9Xg/m0os6knTSrFJe7wtjwmzN/8oGV2++/tSF
t9WLgobzlWgHWnDAA3H2yWu5HsAR62TdcNLomv+x0Vr9jdLLUgSqxrY4p3oTCgkd
PwIj1ZFsTaFg4eLBfmmRD9A64MLs8Z4pvqT9mAxOsqWpCE89zC2xQ/NwSrDWQgaQ
+5b07K5s9+3Yu+tTtCeIhvjsFWIJs9prU5E0PP1lXL6m61oZ7vO/TT73/+1LjRhR
pLAmMDuZE9lMMHffuwEoEqd0c0FlQqtN2GWgHM+9GQKJfsOI8mYGRbuyf/9NVy90
6gF9dRNxlfthLW8Fo/lMpn4r5mCaP14yYc28qW+JhsFEiM9IUUcYDDO0RT+iObnh
IW4o5oOyTxdiLbytMpfTkAENcD1v8F0/mZ3t/lj6UR/Q9wwDSWhfqUsqFMJhiH4t
ViXNuWso1VCdVfGOvp9udRjalsNJ1pNm1xAytI+z9AbTzIPnvAgImr8KvlhpVAY9
fdnr9mYe2w==
=wZwU
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.