• Looking for help on R-cran-testthat testunit

    From Nuno Teixeira@eduardo@freebsd.org to muc.lists.freebsd.ports on Thu Aug 14 18:05:06 2025
    From Newsgroup: muc.lists.freebsd.ports

    --00000000000014e0a5063c5647b9
    Content-Type: text/plain; charset="UTF-8"

    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
    --
    Nuno Teixeira
    FreeBSD UNIX: <eduardo@FreeBSD.org> Web: https://FreeBSD.org

    --00000000000014e0a5063c5647b9
    Content-Type: text/html; charset="UTF-8"
    Content-Transfer-Encoding: quoted-printable

    <div dir=3D"ltr"><div>Hello,</div><div><br></div><div>Looking for help on R= -cran-testthat testunits.<br></div><div>Failure could be related to our por=
    ts framework and need more expertise here.<br><br></div><div>All help is we= lcome,</div><div>Thanks!</div><div><br></div><div><a href=3D"https://github= .com/r-lib/testthat/issues/2214#issuecomment-3188669439">https://github.com= /r-lib/testthat/issues/2214#issuecomment-3188669439</a></div><div><a href= =3D"https://github.com/r-lib/testthat/issues/2214">https://github.com/r-lib= /testthat/issues/2214</a></div><div><span class=3D"gmail_signature_prefix">= <br></span></div><div><span class=3D"gmail_signature_prefix">-- </span></di= v><div dir=3D"ltr" class=3D"gmail_signature" data-smartmail=3D"gmail_signat= ure"><div dir=3D"ltr"><div><font color=3D"#888888">Nuno Teixeira</font></di= v><div><div><font color=3D"#888888">
    FreeBSD UNIX:=C2=A0 &lt;eduardo@FreeBSD.org&gt;=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></div>

    --00000000000014e0a5063c5647b9--


    --
    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
  • From Joseph Mingrone@jrm@freebsd.org to muc.lists.freebsd.ports on Sun Aug 24 15:13:27 2025
    From Newsgroup: muc.lists.freebsd.ports

    --=-=-=
    Content-Type: text/plain

    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= 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

    --=-=-=
    Content-Type: application/pgp-signature; name="signature.asc"

    -----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-----
    --=-=-=--


    --
    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
  • From Nuno Teixeira@eduardo@freebsd.org to muc.lists.freebsd.ports on Tue Aug 26 15:58:04 2025
    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&gt; 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 &#39;*.o&#39; -o -name &#39;*.so&#39; \) -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=
    &lt;<a href=3D"mailto:jrm@freebsd.org" target=3D"_blank">jrm@freebsd.org</= a>&gt; 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 &lt;<a href=3D"mailto:eduardo@freebsd.org" target=3D"_blank">eduardo= @freebsd.org</a>&gt; wrote:<br>

    &gt; Hello,<br>

    &gt; Looking for help on R-cran-testthat testunits.<br>
    &gt; Failure could be related to our ports framework and need more expertis= e<br>
    &gt; here.<br>

    &gt; All help is welcome,<br>
    &gt; Thanks!<br>

    &gt; <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>
    &gt; <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&gt;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&gt;= 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&gt= ;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&gt;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&gt;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&gt;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&gt;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&gt;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 &lt;eduardo@FreeBSD.org&gt;=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