{"action":"created","issue":{"url":"https://api.github.com/repos/ggobi/ggally/issues/93","labels_url":"https://api.github.com/repos/ggobi/ggally/issues/93/labels{/name}","comments_url":"https://api.github.com/repos/ggobi/ggally/issues/93/comments","events_url":"https://api.github.com/repos/ggobi/ggally/issues/93/events","html_url":"https://github.com/ggobi/ggally/issues/93","id":105686666,"number":93,"title":"randomly failing test","user":{"login":"schloerke","id":93231,"avatar_url":"https://avatars.githubusercontent.com/u/93231?v=3","gravatar_id":"","url":"https://api.github.com/users/schloerke","html_url":"https://github.com/schloerke","followers_url":"https://api.github.com/users/schloerke/followers","following_url":"https://api.github.com/users/schloerke/following{/other_user}","gists_url":"https://api.github.com/users/schloerke/gists{/gist_id}","starred_url":"https://api.github.com/users/schloerke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schloerke/subscriptions","organizations_url":"https://api.github.com/users/schloerke/orgs","repos_url":"https://api.github.com/users/schloerke/repos","events_url":"https://api.github.com/users/schloerke/events{/privacy}","received_events_url":"https://api.github.com/users/schloerke/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-09T21:18:51Z","updated_at":"2015-09-10T09:56:34Z","closed_at":null,"body":"@briatte, ggnet/ggnet2 fail randomly and I don't know why.  \r\n\r\n```\r\ngg-plots : ............\r\nggcorr : .........\r\ngglyph : ............................\r\nggmatrix_add : ....\r\nggmatrix_getput : .......\r\nggmatrix : ....................\r\nggnet : ..1\r\nggnet2 : ................2\r\nggnetworkmap : ...........................................\r\nggpairs : .......................................................................\r\nggparcoord : .............................................................\r\nggscatmat : ......\r\nggsurv : ...........................\r\nutils : .....\r\n\r\n\r\n1. Error: examples -------------------------------------------------------------\r\nNot a graph object\r\n1: withCallingHandlers(eval(code, new_test_environment), error = capture_calls)\r\n2: eval(code, new_test_environment)\r\n3: eval(expr, envir, enclos)\r\n4: gplot.layout.circle(n) at test-ggnet.R:47\r\n5: as.edgelist.sna(d)\r\n6: is.bipartite(x)\r\n7: stop(\"Not a graph object\")\r\n8: .handleSimpleError(function (e) \r\n   {\r\n       e$calls <- head(sys.calls()[-seq_len(frame + 7)], -2)\r\n       signalCondition(e)\r\n   }, \"Not a graph object\", quote(is.bipartite(x)))\r\n\r\n2. Error: examples -------------------------------------------------------------\r\nNot a graph object\r\n1: withCallingHandlers(eval(code, new_test_environment), error = capture_calls)\r\n2: eval(code, new_test_environment)\r\n3: eval(expr, envir, enclos)\r\n4: ggnet2(n, size = \"degree\") at test-ggnet2.R:106\r\n5: sna::degree(net, gmode = is_dir, cmode = ifelse(x == \"degree\", \"freeman\", x)) at /Users/barret/Copy/git/R/ggobi_org/ggally/ggally/R/ggnet2.R:484\r\n6: as.edgelist.sna(dat)\r\n7: is.bipartite(x)\r\n8: stop(\"Not a graph object\")\r\n9: .handleSimpleError(function (e) \r\n   {\r\n       e$calls <- head(sys.calls()[-seq_len(frame + 7)], -2)\r\n       signalCondition(e)\r\n   }, \"Not a graph object\", quote(is.bipartite(x)))\r\n\r\nError: Test failures\r\n```\r\n\r\nI then restart R and re-test the package and there are no errors, but a new warning.\r\n```\r\nLoading required package: devtools\r\nLoading GGally\r\nLoading required package: testthat\r\ngg-plots : ............\r\nggcorr : .........\r\ngglyph : ............................\r\nggmatrix_add : ....\r\nggmatrix_getput : .......\r\nggmatrix : ....................\r\nggnet : network: Classes for Relational Data\r\nVersion 1.11.2 created on 2014-09-23.\r\ncopyright (c) 2005, Carter T. Butts, University of California-Irvine\r\n                    Mark S. Handcock, University of California -- Los Angeles\r\n                    David R. Hunter, Penn State University\r\n                    Martina Morris, University of Washington\r\n                    Skye Bender-deMoll, University of Washington\r\n For citation information, type citation(\"network\").\r\n Type help(\"network-package\") to get started.\r\n\r\nsna: Tools for Social Network Analysis\r\nVersion 2.3-2 created on 2014-01-13.\r\ncopyright (c) 2005, Carter T. Butts, University of California-Irvine\r\n For citation information, type citation(\"sna\").\r\n Type help(package=\"sna\") to get started.\r\n\r\n\r\nAttaching package: ‘sna’\r\n\r\nThe following object is masked from ‘package:network’:\r\n\r\n    %c%\r\n\r\n\r\nAttaching package: ‘ggplot2’\r\n\r\nThe following object is masked from ‘package:GGally’:\r\n\r\n    rel\r\n\r\n.............................................\r\nggnet2 : ...................................................\r\nggnetworkmap : Loading required package: igraph\r\n\r\nAttaching package: ‘igraph’\r\n\r\nThe following objects are masked from ‘package:sna’:\r\n\r\n    %c%, betweenness, bonpow, closeness, degree, dyad.census, evcent,\r\n    hierarchy, is.connected, neighborhood, triad.census\r\n\r\nThe following objects are masked from ‘package:network’:\r\n\r\n    %c%, %s%, add.edges, add.vertices, delete.edges, delete.vertices,\r\n    get.edge.attribute, get.edges, get.vertex.attribute, is.bipartite,\r\n    is.directed, list.edge.attributes, list.vertex.attributes,\r\n    set.edge.attribute, set.vertex.attribute\r\n\r\nLoading required package: maps\r\nLoading required package: geosphere\r\nLoading required package: sp\r\nLoading required package: mapproj\r\n...........................................\r\nggpairs : .......................................................................\r\nggparcoord : ........................................Loading required package: scagnostics\r\nLoading required package: rJava\r\n.....................\r\nggscatmat : ......\r\nggsurv : Loading required package: survival\r\nLoading required package: splines\r\n...........................\r\nutils : .....\r\n\r\nWarning message:\r\nThe shape palette can deal with a maximum of 6 discrete values because\r\nmore than 6 becomes difficult to discriminate; you have 10. Consider\r\nspecifying shapes manually. if you must have them. \r\n```\r\n\r\nAny ideas?"},"comment":{"url":"https://api.github.com/repos/ggobi/ggally/issues/comments/139190145","html_url":"https://github.com/ggobi/ggally/issues/93#issuecomment-139190145","issue_url":"https://api.github.com/repos/ggobi/ggally/issues/93","id":139190145,"user":{"login":"briatte","id":322533,"avatar_url":"https://avatars.githubusercontent.com/u/322533?v=3","gravatar_id":"","url":"https://api.github.com/users/briatte","html_url":"https://github.com/briatte","followers_url":"https://api.github.com/users/briatte/followers","following_url":"https://api.github.com/users/briatte/following{/other_user}","gists_url":"https://api.github.com/users/briatte/gists{/gist_id}","starred_url":"https://api.github.com/users/briatte/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/briatte/subscriptions","organizations_url":"https://api.github.com/users/briatte/orgs","repos_url":"https://api.github.com/users/briatte/repos","events_url":"https://api.github.com/users/briatte/events{/privacy}","received_events_url":"https://api.github.com/users/briatte/received_events","type":"User","site_admin":false},"created_at":"2015-09-10T09:56:34Z","updated_at":"2015-09-10T09:56:34Z","body":"P.S. How exactly are you generating the output of both code blocks?\r\n\r\nNeither\r\n\r\n```r\r\ndevtools::check()\r\n```\r\n\r\nor\r\n\r\n```r\r\ntestthat::test_dir(\"tests\")\r\n```\r\n\r\ngenerate any errors."}}