statnet / ergm

Fit, Simulate and Diagnose Exponential-Family Models for Networks
Other
96 stars 37 forks source link

CRAN warnings to be fixed #542

Closed krivit closed 9 months ago

krivit commented 10 months ago

A whole bunch of issues, in docs and code alike.

Version: 4.5.0
Flags: --no-vignettes
Check: Rd files
Result: NOTE
  checkRd: (-1) NEWS.Rd:163-165: Lost braces
     163 |             \item{
         |                  ^
  checkRd: (-1) NEWS.Rd:166-168: Lost braces
     166 |             \item{
         |                  ^
  checkRd: (-1) CondB1Degree-ergmProposal-7a475c2a.Rd:8: Lost braces; missing escapes or markup?
       8 | MHp for \eqn{constraints= ~b1degrees}. For bipartite networks, randomly select an edge {B1i, B2j}
         |                                                                                        ^
  checkRd: (-1) CondB1Degree-ergmProposal-7a475c2a.Rd:9: Lost braces; missing escapes or markup?
       9 | and an empty dyad with the same node B1i, {B1i, B2k}, and propose to toggle both {B1i, B2j} and {B1i, B2k}.
         |                                           ^
  checkRd: (-1) CondB1Degree-ergmProposal-7a475c2a.Rd:9: Lost braces; missing escapes or markup?
       9 | and an empty dyad with the same node B1i, {B1i, B2k}, and propose to toggle both {B1i, B2j} and {B1i, B2k}.
         |                                                                                  ^
  checkRd: (-1) CondB1Degree-ergmProposal-7a475c2a.Rd:9: Lost braces; missing escapes or markup?
       9 | and an empty dyad with the same node B1i, {B1i, B2k}, and propose to toggle both {B1i, B2j} and {B1i, B2k}.
         |                                                                                                 ^
  checkRd: (-1) CondB2Degree-ergmProposal-5d8af849.Rd:8: Lost braces; missing escapes or markup?
       8 | MHp for \eqn{constraints= ~b2degrees}. For bipartite networks, randomly select an edge {B1j, B2i}
         |                                                                                        ^
  checkRd: (-1) CondB2Degree-ergmProposal-5d8af849.Rd:9: Lost braces; missing escapes or markup?
       9 | and an empty dyad with the same node B2i, {B1k, B2i}, and propose to toggle both {B1j, B2i} and {B1k, B2i}.
         |                                           ^
  checkRd: (-1) CondB2Degree-ergmProposal-5d8af849.Rd:9: Lost braces; missing escapes or markup?
       9 | and an empty dyad with the same node B2i, {B1k, B2i}, and propose to toggle both {B1j, B2i} and {B1k, B2i}.
         |                                                                                  ^
  checkRd: (-1) CondB2Degree-ergmProposal-5d8af849.Rd:9: Lost braces; missing escapes or markup?
       9 | and an empty dyad with the same node B2i, {B1k, B2i}, and propose to toggle both {B1j, B2i} and {B1k, B2i}.
         |                                                                                                 ^
  checkRd: (-1) b1cov-ergmTerm-a16e8340.Rd:20: Lost braces
      20 | value of \code{attr(i)} for all edges /eqn{(i,j)} in the network. This
         |                                           ^
  checkRd: (-1) ergm.Rd:490: Lost braces
     490 | Karwa V, Krivitsky PN, and Slavkovi\'{c} AB (2017). Sharing Social Network
         |                                      ^
Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc

Version: 4.5.0
Flags: --no-vignettes
Check: Rd \usage sections
Result: NOTE
  Documented arguments not in \usage in Rd file 'call.ErgmTerm.Rd':
    ‘A’

  Objects in \usage without \alias in Rd file 'ergm-defunct.Rd':
    ‘sociality’

  Documented arguments not in \usage in Rd file 'ergm-deprecated.Rd':
    ‘fname’ ‘varnames’ ‘vartypes’ ‘defaultvalues’ ‘required’
    ‘nw.bipartiteflag’ ‘requirement’ ‘extramessage’ ‘nw.directedflag’ ‘m’
    ‘response’ ‘new’ ‘from.new’ ‘model’ ‘proposal’ ‘eta0’ ‘control’
    ‘verbose’ ‘update.nws’ ‘Clist’ ‘prev.run’ ‘burnin’ ‘samplesize’
    ‘interval’ ‘maxedges’ ‘attrname’ ‘label’ ‘coord’ ‘jitter’ ‘thresh’
    ‘usearrows’ ‘mode’ ‘displayisolates’ ‘interactive’ ‘xlab’ ‘ylab’
    ‘xlim’ ‘ylim’ ‘pad’ ‘label.pad’ ‘displaylabels’ ‘boxed.labels’
    ‘label.pos’ ‘label.bg’ ‘vertex.sides’ ‘vertex.rot’ ‘arrowhead.cex’
    ‘label.cex’ ‘loop.cex’ ‘vertex.cex’ ‘edge.col’ ‘label.col’
    ‘vertex.col’ ‘label.border’ ‘vertex.border’ ‘edge.lty’ ‘label.lty’
    ‘vertex.lty’ ‘edge.lwd’ ‘label.lwd’ ‘edge.len’ ‘edge.curve’
    ‘edge.steps’ ‘loop.steps’ ‘object.scale’ ‘uselen’ ‘usecurve’
    ‘suppress.axes’ ‘vertices.last’ ‘layout.par’ ‘cex.main’ ‘cex.sub’
    ‘seed’ ‘latent.control’ ‘colornames’ ‘latent’ ‘preserve.eattr’

  Documented arguments not in \usage in Rd file 'ergm_state.Rd':
    ‘nw’

  Documented arguments not in \usage in Rd file 'nodal_attributes-API.Rd':
    ‘l’

  Documented arguments not in \usage in Rd file 'summary.ergm_model.Rd':
    ‘response’

  Functions with \usage entries need to have the appropriate \alias
  entries, and all their arguments documented.
  The \usage entries must correspond to syntactically valid R code.
  See chapter ‘Writing R documentation files’ in the ‘Writing R
  Extensions’ manual.
Flavors: [r-devel-linux-x86_64-debian-clang](https://www.r-project.org/nosvn/R.check/r-devel-linux-x86_64-debian-clang/ergm-00check.html), [r-devel-linux-x86_64-debian-gcc](https://www.r-project.org/nosvn/R.check/r-devel-linux-x86_64-debian-gcc/ergm-00check.html)

Version: 4.5.0
Flags: --no-vignettes
Check: whether package can be installed
Result: WARN
  Found the following significant warnings:
    wtedgetree.c:288:23: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘double’ [-Wformat=]
  See ‘/home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/ergm.Rcheck/00install.out’ for details.
  * used C compiler: ‘gcc-13 (Debian 13.2.0-5) 13.2.0’
Flavor: r-devel-linux-x86_64-debian-gcc

Version: 4.5.0
Check: whether package can be installed
Result: WARN
  Found the following significant warnings:
    ./changestats.h:27:9: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
    wtedgetree.c:288:28: warning: format specifies type 'int' but the argument has type 'double' [-Wformat]
  See ‘/data/gannet/ripley/R/packages/tests-clang/ergm.Rcheck/00install.out’ for details.
  * used C compiler: ‘clang version 17.0.5’
Flavor: r-devel-linux-x86_64-fedora-clang

Version: 4.5.0
Check: installed package size
Result: NOTE
    installed size is  5.4Mb
    sub-directories of 1Mb or more:
      R     1.0Mb
      doc   1.7Mb
Flavors: r-devel-linux-x86_64-fedora-clang, r-release-macos-arm64, r-release-macos-x86_64, r-oldrel-macos-arm64, r-oldrel-macos-x86_64

Version: 4.5.0
Check: Rd \usage sections
Result: NOTE
  Documented arguments not in \usage in Rd file 'call.ErgmTerm.Rd':
    ‘A’

  Objects in \usage without \alias in Rd file 'ergm-defunct.Rd':
    ‘sociality’

  Documented arguments not in \usage in Rd file 'ergm-deprecated.Rd':
    ‘fname’ ‘varnames’ ‘vartypes’ ‘defaultvalues’ ‘required’
    ‘nw.bipartiteflag’ ‘requirement’ ‘extramessage’ ‘nw.directedflag’ ‘m’
    ‘response’ ‘new’ ‘from.new’ ‘model’ ‘proposal’ ‘eta0’ ‘control’
    ‘verbose’ ‘update.nws’ ‘Clist’ ‘prev.run’ ‘burnin’ ‘samplesize’
    ‘interval’ ‘maxedges’ ‘attrname’ ‘label’ ‘coord’ ‘jitter’ ‘thresh’
    ‘usearrows’ ‘mode’ ‘displayisolates’ ‘interactive’ ‘xlab’ ‘ylab’
    ‘xlim’ ‘ylim’ ‘pad’ ‘label.pad’ ‘displaylabels’ ‘boxed.labels’
    ‘label.pos’ ‘label.bg’ ‘vertex.sides’ ‘vertex.rot’ ‘arrowhead.cex’
    ‘label.cex’ ‘loop.cex’ ‘vertex.cex’ ‘edge.col’ ‘label.col’
    ‘vertex.col’ ‘label.border’ ‘vertex.border’ ‘edge.lty’ ‘label.lty’
    ‘vertex.lty’ ‘edge.lwd’ ‘label.lwd’ ‘edge.len’ ‘edge.curve’
    ‘edge.steps’ ‘loop.steps’ ‘object.scale’ ‘uselen’ ‘usecurve’
    ‘suppress.axes’ ‘vertices.last’ ‘layout.par’ ‘cex.main’ ‘cex.sub’
    ‘seed’ ‘latent.control’ ‘colornames’ ‘latent’ ‘preserve.eattr’

  Documented arguments not in \usage in Rd file 'ergm_state.Rd':
    ‘nw’

  Documented arguments not in \usage in Rd file 'nodal_attributes-API.Rd':
    ‘l’

  Documented arguments not in \usage in Rd file 'summary.ergm_model.Rd':
    ‘response’

  Functions with \usage entries need to have the appropriate \alias
  entries, and all their arguments documented.
  The \usage entries must correspond to syntactically valid R code.
  See chapter ‘Writing R documentation files’ in the ‘Writing R
  Extensions’ manual.
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc

Version: 4.5.0
Check: whether package can be installed
Result: WARN
  Found the following significant warnings:
    wtedgetree.c:288:23: warning: format '%d' expects argument of type 'int', but argument 2 has type 'double' [-Wformat=]
  See ‘/data/gannet/ripley/R/packages/tests-devel/ergm.Rcheck/00install.out’ for details.
  * used C compiler: ‘gcc-13 (GCC) 13.2.0’
Flavor: r-devel-linux-x86_64-fedora-gcc

Version: 4.5.0
Flags: --no-examples --no-tests --no-vignettes
Check: Rd \usage sections
Result: NOTE
  Documented arguments not in \usage in Rd file 'call.ErgmTerm.Rd':
    'A'

  Objects in \usage without \alias in Rd file 'ergm-defunct.Rd':
    'sociality'

  Documented arguments not in \usage in Rd file 'ergm-deprecated.Rd':
    'fname' 'varnames' 'vartypes' 'defaultvalues' 'required'
    'nw.bipartiteflag' 'requirement' 'extramessage' 'nw.directedflag' 'm'
    'response' 'new' 'from.new' 'model' 'proposal' 'eta0' 'control'
    'verbose' 'update.nws' 'Clist' 'prev.run' 'burnin' 'samplesize'
    'interval' 'maxedges' 'attrname' 'label' 'coord' 'jitter' 'thresh'
    'usearrows' 'mode' 'displayisolates' 'interactive' 'xlab' 'ylab'
    'xlim' 'ylim' 'pad' 'label.pad' 'displaylabels' 'boxed.labels'
    'label.pos' 'label.bg' 'vertex.sides' 'vertex.rot' 'arrowhead.cex'
    'label.cex' 'loop.cex' 'vertex.cex' 'edge.col' 'label.col'
    'vertex.col' 'label.border' 'vertex.border' 'edge.lty' 'label.lty'
    'vertex.lty' 'edge.lwd' 'label.lwd' 'edge.len' 'edge.curve'
    'edge.steps' 'loop.steps' 'object.scale' 'uselen' 'usecurve'
    'suppress.axes' 'vertices.last' 'layout.par' 'cex.main' 'cex.sub'
    'seed' 'latent.control' 'colornames' 'latent' 'preserve.eattr'

  Documented arguments not in \usage in Rd file 'ergm_state.Rd':
    'nw'

  Documented arguments not in \usage in Rd file 'nodal_attributes-API.Rd':
    'l'

  Documented arguments not in \usage in Rd file 'summary.ergm_model.Rd':
    'response'

  Functions with \usage entries need to have the appropriate \alias
  entries, and all their arguments documented.
  The \usage entries must correspond to syntactically valid R code.
  See chapter 'Writing R documentation files' in the 'Writing R
  Extensions' manual.
Flavor: r-devel-windows-x86_64

Version: 4.5.0
Flags: --no-vignettes
Check: whether package can be installed
Result: WARN
  Found the following significant warnings:
    Rd warning: no hsearch.rds meta data for package ergm
  See ‘/home/hornik/tmp/R.check/r-patched-gcc/Work/PKGS/ergm.Rcheck/00install.out’ for details.
  * used C compiler: ‘gcc-13 (Debian 13.2.0-5) 13.2.0’
Flavor: [r-patched-linux-x86_64](https://www.r-project.org/nosvn/R.check/r-patched-linux-x86_64/ergm-00check.html)
krivit commented 9 months ago

I think that's all of them.