[R-pkg-devel] Problem with NEWS file
Dear all, Version 2.0.0 of my ‘evclass' package was rejected for the second time with the following note from the Debian check (the Windows check is OK): * checking package subdirectories ... NOTE Problems with news in ‘NEWS’: Cannot process chunk/lines: Version 2.0.0 includes an implementation of radial basis function neural network classifiers, as well as functions to express the outputs of trained logistic regression or feed-forward neural network classifiers as Dempster-Shafer mass functions. These methods are based on an interpretation of the operations performed in neural networks as the combination of weights of evidence by Dempster's rule (see: "T. Denoeux, Logistic Regression, Neural Networks and Dempster-Shafer Theory: a New Perspective. Knowledge-Based Systems 176:54-67, 2019"). I already tried to change the NEWS file but I have no idea where the error might come from. The NEWS file is a text file created by TextEdit on Mac with UTF-8 encoding, so I don’t see how there could be hidden special characters in it. I see nothing special in the line that could not be processed. Any help would be greatly appreciated. Best, Thierry -- Prof. Thierry Denoeux Université de technologie de Compiègne Institut universitaire de France Rue Roger Couttolenc, CS 60319 60203 Compiègne cedex, France https://www.hds.utc.fr/~tdenoeux [[alternative HTML version deleted]] __ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel
Re: [R-pkg-devel] Problem with NEWS file
On Sat, 7 Jan 2023 15:02:18 +0700 Thierry Denoeux wrote: > The NEWS file is a text file created by TextEdit on Mac with UTF-8 > encoding, so I don’t see how there could be hidden special characters > in it. The problem is that the NEWS files are supposed to have a certain format (documented in help(news)). For a long time, this hasn't been enforced, but now there are checks in place that require NEWS to be written to specifications. I think that your line can be transformed as follows in order to parse correctly: Changes in version 2.0.0 * Implementation of radial basis function neural network classifiers, as well as functions to express the outputs of trained logistic regression or feed-forward neural network classifiers as Dempster-Shafer mass functions. These methods are based on an interpretation of the operations performed in neural networks as the combination of weights of evidence by Dempster's rule (see: "T. Denoeux, Logistic Regression, Neural Networks and Dempster-Shafer Theory: a New Perspective. Knowledge-Based Systems 176:54-67, 2019"). You can also write an inst/NEWS.Rd file in Rd format. As you can see from reading ?news, it is preferred to provide a bulleted list of the changes. -- Best regards, Ivan __ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel
Re: [R-pkg-devel] Problem with NEWS file
I had overlooked these new specifications for the NEWS file. Thank you very much! Thierry -- Prof. Thierry Denoeux Université de technologie de Compiègne Institut universitaire de France Rue Roger Couttolenc, CS 60319 60203 Compiègne cedex, France https://www.hds.utc.fr/~tdenoeux > Le 7 janv. 2023 à 15:20, Ivan Krylov a écrit : > > On Sat, 7 Jan 2023 15:02:18 +0700 > Thierry Denoeux wrote: > >> The NEWS file is a text file created by TextEdit on Mac with UTF-8 >> encoding, so I don’t see how there could be hidden special characters >> in it. > > The problem is that the NEWS files are supposed to have a certain > format (documented in help(news)). For a long time, this hasn't been > enforced, but now there are checks in place that require NEWS to be > written to specifications. > > I think that your line can be transformed as follows in order to parse > correctly: > > Changes in version 2.0.0 > > * Implementation of radial basis function neural network classifiers, > as well as functions to express the outputs of trained logistic > regression or feed-forward neural network classifiers as > Dempster-Shafer mass functions. These methods are based on an > interpretation of the operations performed in neural networks as the > combination of weights of evidence by Dempster's rule (see: "T. > Denoeux, Logistic Regression, Neural Networks and Dempster-Shafer > Theory: a New Perspective. Knowledge-Based Systems 176:54-67, 2019"). > > You can also write an inst/NEWS.Rd file in Rd format. > > As you can see from reading ?news, it is preferred to provide a > bulleted list of the changes. > > -- > Best regards, > Ivan [[alternative HTML version deleted]] __ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel
[R-pkg-devel] Mysterious "invalid z limit"
Hi, I am in the middle of developing a new package, which contains a markdown-knitr-html vignette. When I try to run R CMD build [mypackagedirectory] I get an error message Quitting from lines 330-336 Error: processing vignette failed with diagnostics: invalid z limits If I run the same markdown script interactively inside R Studio, there is no error. If I knit the markdown script inside R Studio, it produces the correct HTML output, with no error. The offending lines of code (the chunk at 330-336) invoke an "image" method on an object of a class defined in the package, which in turn computes a matrix from items inside the object and calls image.default, which is presumably where the error is coming from. Two questions: (1) How is it possible that the same code works error free in the RStudio contexts, but fails in the attempt to build the package? (2) Any suggestions on how to debug something that only throws an error from "R CMD build" would be most welcome. Thanks in advance, Kevin __ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel