From Newsgroup: muc.lists.freebsd.ports
--000000000000e11838063d45e6c1
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Hello Joseph!
I waiting on a newer version of testthat because upstream found out more
about errors and fixed some.
=3D=3D> 3rd edition requirement error is an ports framework problem of some kind say upstream.
I asked uzsolt@ for help and he said to me that some workaround on cran
tests are being used by
ftp/R-cran-curl or print/R-cran-knitr
Using a custom make test:
```
do-test:
@${FIND} ${WRKSRC} \( -name '*.o' -o -name '*.so' \) -delete
@cd ${WRKDIR} ; ${SETENVI} ${WRK_ENV} ${MAKE_ENV} _R_CHECK_FORCE_SUGGESTS_=3DFALSE \
${R_COMMAND} ${R_PRECMD_CHECK_OPTIONS} CMD check \
${R_POSTCMD_CHECK_OPTIONS} ${PORTNAME}
```
it fixes the 3rd edition error and lead us to a new one that upstream
already merged a fix:
https://github.com/r-lib/testthat/issues/2214#issuecomment-3188669439 https://github.com/r-lib/testthat/issues/2214
Maybe I should update right away the test target on port now... not sure.
Cheers,
Joseph Mingrone <
jrm@freebsd.org> escreveu (domingo, 24/08/2025 =C3=A0(s) 1= 9:13):
On Thu, 2025-08-14 at 18:05, Nuno Teixeira <eduardo@freebsd.org> 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=3D 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
--=20
Nuno Teixeira
FreeBSD UNIX: <
eduardo@FreeBSD.org> Web:
https://FreeBSD.org
--000000000000e11838063d45e6c1
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr"><div><div><div>Hello Joseph!<br><br></div>I waiting on a n= ewer version of testthat because upstream found out more about errors and f= ixed some.<br><br></div>=3D=3D> 3rd edition requirement error is an port=
s framework problem of some kind say upstream.<br></div><div>I asked=C2=A0<= span><span role=3D"gridcell"><span>uzsolt@ for help and he said to me that = some workaround on cran tests are being used by</span></span></span></div><= div>ftp/R-cran-curl or print/R-cran-knitr</div><div><br></div><div>Using a = custom make test:<br>```<br>do-test:<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 @${FIND=
} ${WRKSRC} \( -name '*.o' -o -name '*.so' \) -delete<br>= =C2=A0 =C2=A0 =C2=A0 =C2=A0 @cd ${WRKDIR} ; ${SETENVI} ${WRK_ENV} ${MAKE_EN=
V} _R_CHECK_FORCE_SUGGESTS_=3DFALSE \<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 ${R_CO= MMAND} ${R_PRECMD_CHECK_OPTIONS} CMD check \<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0=
${R_POSTCMD_CHECK_OPTIONS} ${PORTNAME}</div><div>```</div><div>it fixes th=
e 3rd edition error and lead us to a new one that upstream already merged a=
fix:<br></div><div><a href=3D"
https://github.com/r-lib/testthat/issues/221= 4#issuecomment-3188669439">
https://github.com/r-lib/testthat/issues/2214#is= suecomment-3188669439</a></div><div><a href=3D"
https://github.com/r-lib/tes= tthat/issues/2214">
https://github.com/r-lib/testthat/issues/2214</a><br></d= iv><div><br></div><div>Maybe I should update right away the test target on = port now... not sure.</div><div><br></div><div>Cheers,</div></div><br><div = class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">Joseph Mingrone=
<<a href=3D"mailto:
jrm@freebsd.org" target=3D"_blank">
jrm@freebsd.org</= a>> escreveu (domingo, 24/08/2025 =C3=A0(s) 19:13):<br></div><blockquote=
class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px so= lid rgb(204,204,204);padding-left:1ex">On Thu, 2025-08-14 at 18:05, Nuno Te= ixeira <<a href=3D"mailto:
eduardo@freebsd.org" target=3D"_blank">eduardo= @freebsd.org</a>> wrote:<br>
> Hello,<br>
> Looking for help on R-cran-testthat testunits.<br>
> Failure could be related to our ports framework and need more expertis= e<br>
> here.<br>
> All help is welcome,<br>
> Thanks!<br>
> <a href=3D"
https://github.com/r-lib/testthat/issues/2214#issuecomment-= 3188669439" rel=3D"noreferrer" target=3D"_blank">
https://github.com/r-lib/t= estthat/issues/2214#issuecomment-3188669439</a><br>
> <a href=3D"
https://github.com/r-lib/testthat/issues/2214" rel=3D"noref= errer" target=3D"_blank">
https://github.com/r-lib/testthat/issues/2214</a><=
Hello Nuno,<br>
When I ran `make test`, it reported errors about missing packages, so I<br> locally added this to devel/R-cran-testthat/Makefile:<br>
TEST_DEPENDS=3D=C2=A0 =C2=A0R-cran-covr>0:devel/R-cran-covr \<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ftp/R-cran-curl>= 0:ftp/R-cran-curl \<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 R-cran-rmarkdown>= ;0:textproc/R-cran-rmarkdown \<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 R-cran-rstudioapi&g= t;0:devel/R-cran-rstudioapi \<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 R-cran-S7>0:deve= l/R-cran-S7 \<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 R-cran-shiny>0:w= ww/R-cran-shiny \<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 R-cran-usethis>0= :devel/R-cran-usethis \<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 R-cran-vctrs>0:d= evel/R-cran-vctrs \<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 R-cran-xml2>0:te= xtproc/R-cran-xml2<br>
It still reported that utils, a built-in package, was missing.=C2=A0 After<=
investigating, I discovered that the DESCRIPTION file for the utils<br>
package was not always installed.=C2=A0 That issue is now fixed as of<br> a8e266393d86d5f40045c03ee1cda64f323ce6c1.<br>
Now `make test` says<br>
[ FAIL 1 | WARN 12 | SKIP 132 | PASS 943 ]<br>
That one error is related to the 3rd edition stuff that is mentioned in<br>
the devel/R-cran-testthat/Makefile and described at:<br>
<a href=3D"
https://testthat.r-lib.org/articles/third-edition.html" rel=3D"n= oreferrer" target=3D"_blank">
https://testthat.r-lib.org/articles/third-edit= ion.html</a>.<br>
Joe<br>
</blockquote></div><div><br clear=3D"all"></div><br><span class=3D"gmail_si= gnature_prefix">-- </span><br><div dir=3D"ltr" class=3D"gmail_signature"><d=
iv dir=3D"ltr"><div><font color=3D"#888888">Nuno Teixeira</font></div><div>= <div><font color=3D"#888888">
FreeBSD UNIX:=C2=A0 <
eduardo@FreeBSD.org>=C2=A0 =C2=A0Web:=C2=A0 <a h= ref=3D"
https://FreeBSD.org" rel=3D"noreferrer" target=3D"_blank">
https://Fr= eeBSD.org</a><br></font></div></div></div></div>
--000000000000e11838063d45e6c1--
--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to
news-admin@muc.de
--- Synchronet 3.21a-Linux NewsLink 1.2