cna branch R CMD check errors

Issue #69 resolved
Barry Grant created an issue

There are lots of R CMD check problems reported on the feature-cna branch that need to be solved before we can merge to master.

E.g:

* installing *source* packagebio3d...
** R
** data
*** moving datasets to lazyload DB
** demo
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded
* DONE (bio3d)
pico:ver_devel barry$ R CMD check bio3d
* using log directory/Users/barry/tmpwork/Rpackage/GIT/bio3d/ver_devel/bio3d.Rcheck* using R version 3.0.2 (2013-09-25)
* using platform: x86_64-apple-darwin10.8.0 (64-bit)
* using session charset: UTF-8
* checking for filebio3d/DESCRIPTION... OK
* this is packagebio3dversion2.0-1* 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 executable files ... OK
* checking for hidden files and directories ... OK
* checking for portable file names ... OK
* checking for sufficient/correct file permissions ... OK
* checking whether packagebio3dcan be installed ... OK
* checking installed package size ... OK
* checking package directory ... 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
* checking whether the package can be loaded ... OK
* checking whether the package can be loaded with stated dependencies ... OK
* checking whether the package can be unloaded cleanly ... OK
* checking whether the namespace can be loaded with stated dependencies ... OK
* checking whether the namespace can be unloaded cleanly ... OK
* checking dependencies in R code ... WARNINGlibraryorrequirecall not declared from:rgl’
‘libraryorrequirecall toigraphwhich was already attached by Depends.
  Please remove these calls from your code.
See the information on DESCRIPTION files in the chapterCreating R
packagesof theWriting R Extensionsmanual.
* checking S3 generic/method consistency ... OK
* checking replacement functions ... OK
* checking foreign function calls ... OK
* checking R code for possible problems ... NOTE
addABC: no visible global function definition forsegments3daddABC: no visible global function definition fortext3daddPBCBox: no visible global function definition forsegments3daddXYZ: no visible global function definition forsegments3daddXYZ: no visible global function definition fortext3dvisualize.default: no visible global function definition foropen3dvisualize.default: no visible global function definition forpar3dvisualize.default: no visible global function definition forbg3dvisualize.default: no visible global function definition forrgl.idsvisualize.default: no visible global function definition forsegments3dvisualize.default: no visible global function definition forspheres3dvisualize.default: no visible global function definition forpoints3dvisualize.pdb: no visible binding for global variablepdb* checking Rd files ... WARNING
atom2ele.Rd: non-ASCII input and no declared encoding
cna.Rd: non-ASCII input and no declared encoding
prepare_Rd: identify.cna.Rd:35-36: Dropping empty section \references
prepare_Rd: layout.pdb.Rd:32-33: Dropping empty section \references
problems found inatom2ele.Rd,cna.Rd* checking Rd metadata ... OK
* checking Rd cross-references ... OK
* checking for missing documentation entries ... WARNING
Undocumented code objects:make.name.tree’ ‘unlist2All user-level objects in a package should have documentation entries.
See the chapterWriting R documentation filesin theWriting R
Extensionsmanual.
* checking for code/documentation mismatches ... WARNING
Codoc mismatches from documentation object 'cna':
cna
  Code: function(cij, cutoff.cij = 0.4, cm = NULL, vnames =
                 colnames(cij), cluster.method = "btwn",
                 collapse.method = "max", cols = vmd.colors(),
                 minus.log = TRUE)
  Docs: function(cij, vnames = colnames(cij), cutoff.cij = 0.4, cm =
                 NULL, method = "btwn")
  Argument names in code not in docs:
    cluster.method collapse.method cols minus.log
  Argument names in docs not in code:
    method
  Mismatches in argument names (first 3):
    Position: 2 Code: cutoff.cij Docs: vnames
    Position: 3 Code: cm Docs: cutoff.cij
    Position: 4 Code: vnames Docs: cm

Codoc mismatches from documentation object 'nma.pdbs':
nma.pdbs
  Code: function(pdbs, fit = TRUE, full = FALSE, defa = FALSE, rm.gaps
                 = TRUE, outpath = "pdbs_nma", ...)
  Docs: function(pdbs, fit = TRUE, full = FALSE, rm.gaps = TRUE, defa =
                 FALSE, outpath = "pdbs_nma", ...)
  Mismatches in argument names:
    Position: 4 Code: defa Docs: rm.gaps
    Position: 5 Code: rm.gaps Docs: defa

Codoc mismatches from documentation object 'pca.xyz':
pca.xyz
  Code: function(xyz, subset = rep(TRUE, nrow(as.matrix(xyz))), use.svd
                 = FALSE)
  Docs: function(xyz, subset = rep(TRUE, nrow(as.matrix(xyz)), use.svd
                 = FALSE))
  Argument names in code not in docs:
    use.svd
  Mismatches in argument default values:
    Name: 'subset' Code: rep(TRUE, nrow(as.matrix(xyz))) Docs: rep(TRUE, nrow(as.matrix(xyz)), use.svd = FALSE)

Codoc mismatches from documentation object 'plot.cna':
plot.cna
  Code: function(x, weights = NULL, layout = NULL, col = NULL, ...)
  Docs: function(x, weights = E(x$community.network)$weight * 10,
                 layout = NULL, col = NULL, ...)
  Mismatches in argument default values:
    Name: 'weights' Code: NULL Docs: E(x$community.network)$weight * 10

Codoc mismatches from documentation object 'prune.cna':
prune.cna
  Code: function(x, edges.min = 1, size.min = 1)
  Docs: function(x, edges.min = 1, size.min = 1, cluster.method =
                 "btwn")
  Argument names in docs not in code:
    cluster.method

* checking Rd \usage sections ... WARNING
Undocumented arguments in documentation object 'cna'methodUndocumented arguments in documentation object 'print.cna'objectFunctions 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 the chapterWriting R documentation filesin theWriting R
Extensionsmanual.
S3 methods shown with full name in documentation object 'identify.cna':identify.cnaS3 methods shown with full name in documentation object 'plot.cna':plot.cnaS3 methods shown with full name in documentation object 'print.cna':print.cna’ ‘summary.cnaThe \usage entries for S3 methods should use the \method markup and not
their full name.
See the chapterWriting R documentation filesin theWriting R
Extensionsmanual.
* checking Rd contents ... OK
* checking for unstated dependencies in examples ... WARNINGlibraryorrequirecall not declared from:abind* checking contents ofdatadirectory ... OK
* checking data for non-ASCII characters ... OK
* checking data for ASCII and uncompressed saves ... OK
* checking files invignettes... OK
* checking examples ... ERROR
Running examples inbio3d-Ex.Rfailed
The error most likely occurred in:

> ### Name: cmap.filter
> ### Title: Contact Map Consensus Filtering
> ### Aliases: cmap.filter
> ### Keywords: analysis
>
> ### ** Examples
>
> ## load example data
> data(pdb)
Warning in data(pdb) : data setpdbnot found
> data(trj.1)
Warning in data(trj.1) : data settrj.1not found
> data(trj.2)
Warning in data(trj.2) : data settrj.2not found
> data(trj.3)
Warning in data(trj.3) : data settrj.3not found
>
> ## Lets work with Calpha atoms only
> library(bio3d)
> ca.inds <- atom.select(pdb, "calpha")

Build selection from input string

Error in unique(pdb$atom[, "resid"]) : object 'pdb' not found
Calls: atom.select -> parse.string -> unique
Execution halted

Comments (1)

  1. Barry Grant reporter

    Major warnings and errors fixed, some warnings related to visualize functions remain and will be addressed on the visualize branch.

  2. Log in to comment