[R-pkg-devel] using printf() in C code (package 'powell')

Martin Maechler maechler at stat.math.ethz.ch
Wed May 4 09:20:40 CEST 2016


>>>>> ProfJCNash  <profjcnash at gmail.com>
>>>>>     on Tue, 3 May 2016 15:55:08 -0400 writes:

 [..........]

    > Also, in my review I've come across a few package glitches e.g., package
    > "powell" won't install because of something untoward in printf()
    > functions. I'll report this in detail when R 3.3 comes in the Linux Mint
    > update if there is still a problem at that time. (CRAN checks are
    > complaining about such issues, but seem to treat them as warnings rather
    > than errors. The package date is 2006, so rather old.)

[Yes, indeed, impressively so, as unchanged non-archived CRAN package.]

Indeed, the C code in powell does printf(<warning_msg>)
which is not good. Rather it should use R's API for warning
messages -- as these work on all platforms, also inside GUIs --
and also as the user can then use  suppresWarnings(.)  etc.

This will definitely not go away with R 3.3.0 or any later
version of R.
But then  maintainer("powell")  is still active, and his e-mail
address at your fingertips,..., right ?

--> I've BCC'ed Sundar, so he is informed.

With best regards,
Martin

Martin Maechler @ ETH Zurich





    > On 16-05-03 03:40 PM, Uwe Ligges wrote:
    >> 
    >> 
    >> On 03.05.2016 21:31, ProfJCNash wrote:
    >>> I noted that my nlmrt package on CRAN has package usl as a "reverse
    >>> imports". In a modest search I have yet to find a definition of the
    >>> term. Does anyone have a pointer?
    >> 
    >> That means usl imports from your nlmrt package.
    >> 
    >> Best,
    >> Uwe Ligges
    >> 
    >> 
    >>> 
    >>> JN
    >>> 
    >>> ______________________________________________
    >>> R-package-devel at r-project.org mailing list
    >>> https://stat.ethz.ch/mailman/listinfo/r-package-devel
    >>> 

    > ______________________________________________
    > R-package-devel at r-project.org mailing list
    > https://stat.ethz.ch/mailman/listinfo/r-package-devel



More information about the R-package-devel mailing list