[Bioc-devel] BiocCheck examples error when using imported package functions

Glyn Bradley glyn.x.bradley at gsk.com
Fri Jan 16 17:31:23 CET 2015


Hi

Please disregard this thread, I've realised it's an error with our code

Thanks
Glyn




From: Glyn Bradley
Sent: 16 January 2015 15:32
To: 'bioc-devel at r-project.org'
Subject: BiocCheck examples error when using imported package functions

Hi,

Our package uses igraph.
We have
imports: igraph in the DESCRIPTION file and
import(igraph)in the NAMESPACE
But when we try to write examples for our functions that use igraph functions to create then use igraph objects from our input, BiocCheck fails on them.
How can we use igraph in our examples?

The error is
> ### ** Examples
>
> network <- graph.formula( "node0" -+ "node1")
> network <- set.edge.attribute(network,"Weight", 1, 1)
> network <- set.vertex.attribute(network,"ID", 1:2, 1:2)
> predictions <- MakePredictions("node0", +1, network, 2)
Error in if (network$isCCG) { : argument is of length zero
Calls: MakePredictions
Execution halted
** running examples for arch 'x64' ... ERROR

Thanks,
Glyn





________________________________

This e-mail was sent by GlaxoSmithKline Services Unlimited
(registered in England and Wales No. 1047315), which is a
member of the GlaxoSmithKline group of companies. The
registered address of GlaxoSmithKline Services Unlimited
is 980 Great West Road, Brentford, Middlesex TW8 9GS.

	[[alternative HTML version deleted]]



More information about the Bioc-devel mailing list