[R-pkg-devel] First time CRAN submission

2020-12-13 Thread Filippo Monari
Hi All,
I am trying to submit my first package to CRAN. I already went through few
iterations and corrected most of the problems (I believe). However I still
getting two issues that I cannot figure out hoe to fix. I will list them
here below, hoping for some help. You can find the package that I am trying
to submit at https://gitlab.com/ingfimo/modello.

With respect to the Windows test this is the output that has been returned
to me:

> * using log directory 'd:/RCompile/CRANincoming/R-devel/modello.Rcheck'
> * using R Under development (unstable) (2020-12-09 r79601)
> * using platform: x86_64-w64-mingw32 (64-bit)
> * using session charset: ISO8859-1
> * checking for file 'modello/DESCRIPTION' ... OK
> * this is package 'modello' version '0.1'
> * checking CRAN incoming feasibility ... NOTE
> Maintainer: 'Filippo Monari '
>
> New submission
>
> Possibly mis-spelled words in DESCRIPTION:
>   Modello (2:8, 12:27, 13:22, 18:55)
>   openMP (13:98)
>
> The Title field starts with the package name.
> The Title field should be in title case. Current version is:
> 'Modello: a homemade Deep Learning library'
> In title case that is:
> 'Modello: a Homemade Deep Learning Library'
> * checking package namespace information ... OK
> * checking package dependencies ... OK
> * checking if this is a source package ... OK
> * checking if there is a namespace ... OK
> * checking for hidden files and directories ... OK
> * checking for portable file names ... OK
> * checking serialization versions ... OK
> * checking whether package 'modello' can be installed ... OK
> * checking installed package size ... OK
> * checking package directory ... OK
> * checking for future file timestamps ... OK
> * checking DESCRIPTION meta-information ... OK
> * checking top-level files ... OK
> * checking for left-over files ... OK
> * checking index information ... OK
> * checking package subdirectories ... OK
> * checking R files for non-ASCII characters ... OK
> * checking R files for syntax errors ... OK
> * loading checks for arch 'i386'
> ** checking whether the package can be loaded ... ERROR
> Loading this package had a fatal error status code 1
> Loading log:
> Error: package 'modello' is not installed for 'arch = i386'
> Execution halted
> ** DONE
> Status: 1 ERROR, 1 NOTE
>
>   In particular the package compiles correctly but I stil get the error
"package 'modello' is not installed for 'arch = i386'"

With respect to the Debian test the warning that makes the submission to
fail is the following:

> * checking whether package ‘modello’ can be installed ... [33s/32s] WARNING
> Found the following significant warnings:
> Warning: Type specified for intrinsic function ‘size’ at (1) is ignored
> [-Wsurprising]
> See ‘/srv/hornik/tmp/CRAN/modello.Rcheck/00install.out’ for details.

which relates to few workings of the fololwing kind:

> Warning: Type specified for intrinsic function ‘size’ at (1) is ignored
> [-Wsurprising]

and

> Warning: ‘ss.dim[1].stride’ may be used uninitialized in this function
> [-Wmaybe-uninitialized]

I cannot reproduce these warnings on my environments, even by using -Wall
and -Wextra during the compilation. Googling the topic I found that it
could be bug in an old version of gcc (
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77504).

Any advice on how to further proceed with the submission are welcome.

Regards,
Filippo

[[alternative HTML version deleted]]

__
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel


[R-pkg-devel] Vignette fonts problem

2020-12-13 Thread Göran Broström

I have built and checked eha_2.8.2 with R-4.0.3 and everything is OK.

However, checking with the current (2020-12-12) R-devel, I get:

--- re-building ‘tpchreg.Rmd’ using rmarkdown
Quitting from lines 103-108 (tpchreg.Rmd)
Error: processing vignette 'tpchreg.Rmd' failed with diagnostics:
X11 font -adobe-helvetica-%s-%s-*-*-%d-*-*-*-*-*-*-*, face 1 at size 12 
could not be loaded

--- failed re-building ‘tpchreg.Rmd’

In 'tpchreg.Rmd' I have:

---
title: "Proportional hazards regression with tabular data"
author: "Göran Broström"
package: eha
date: "`r Sys.Date()`"
slug: eha
link-citations: yes
output:
bookdown::html_document2:
toc: yes
toc_depth: 2
pkgdown:
as_is: true
bibliography: mybib.bib
vignette: >
  %\VignetteIndexEntry{Proportional hazards regression with tabular data}
  %\VignetteEngine{knitr::rmarkdown}
  %\VignetteEncoding{UTF-8}
  \usepackage[utf8]{inputenc}
---

and the lines 103-108 are:

```{r glmbasefig,  fig.cap = "Age-specific mortality, Sweden 1968-2019. 
Poisson regression."}

oldpar <- par(las = 1, lwd = 1.5, mfrow = c(1, 2))
plot(0:(n-1), haz, type = "s", main = "log(hazards)",
 xlab = "Age", ylab = "", log = "y")
plot(0:(n-1), haz, type = "s", main = "hazards",
 xlab = "Age", ylab = "Deaths / Year")
```

So, why do I get the fonts error now (and not earlier) and where can I 
find the fonts? (Ubuntu 20.04). And will it help, so the package is 
accepted by CRAN?


Thanks, Göran

__
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel


Re: [R-pkg-devel] Vignette fonts problem

2020-12-13 Thread Göran Broström
Update: I tried this on another machine with the same setup (I thought), 
and no problem with the R-devel check!


Must find those fonts ...

On CRAN soon!

Göran

On 2020-12-13 18:33, Göran Broström wrote:

I have built and checked eha_2.8.2 with R-4.0.3 and everything is OK.

However, checking with the current (2020-12-12) R-devel, I get:

--- re-building ‘tpchreg.Rmd’ using rmarkdown
Quitting from lines 103-108 (tpchreg.Rmd)
Error: processing vignette 'tpchreg.Rmd' failed with diagnostics:
X11 font -adobe-helvetica-%s-%s-*-*-%d-*-*-*-*-*-*-*, face 1 at size 12 
could not be loaded

--- failed re-building ‘tpchreg.Rmd’

In 'tpchreg.Rmd' I have:

---
title: "Proportional hazards regression with tabular data"
author: "Göran Broström"
package: eha
date: "`r Sys.Date()`"
slug: eha
link-citations: yes
output:
     bookdown::html_document2:
     toc: yes
     toc_depth: 2
pkgdown:
     as_is: true
bibliography: mybib.bib
vignette: >
   %\VignetteIndexEntry{Proportional hazards regression with tabular data}
   %\VignetteEngine{knitr::rmarkdown}
   %\VignetteEncoding{UTF-8}
   \usepackage[utf8]{inputenc}
---

and the lines 103-108 are:

```{r glmbasefig,  fig.cap = "Age-specific mortality, Sweden 1968-2019. 
Poisson regression."}

oldpar <- par(las = 1, lwd = 1.5, mfrow = c(1, 2))
plot(0:(n-1), haz, type = "s", main = "log(hazards)",
  xlab = "Age", ylab = "", log = "y")
plot(0:(n-1), haz, type = "s", main = "hazards",
  xlab = "Age", ylab = "Deaths / Year")
```

So, why do I get the fonts error now (and not earlier) and where can I 
find the fonts? (Ubuntu 20.04). And will it help, so the package is 
accepted by CRAN?


Thanks, Göran

__
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel


__
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel