-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sna and magrittr namespace bug fix + update description fields
- Loading branch information
1 parent
42532a9
commit d2d7094
Showing
5 changed files
with
46 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,22 @@ | ||
Package: gwdegree | ||
Title: A Shiny App to Aid Interpretation of Geometrically-Weighted Degree Estimates in Exponential | ||
Random Graph Models | ||
Version: 0.1.0.9000 | ||
Version: 0.1.1 | ||
Authors@R: person("Michael", "Levy", email = "[email protected]", role = c("aut", "cre")) | ||
License: MIT + file LICENSE | ||
Description: This is a Shiny application intended to provide better understanding of how geometrically-weighted degree terms function in exponential random graph models of networks. It contains just one user function, gwdegree(), which launches the Shiny application. | ||
URL: https://github.com/michaellevy/gwdegree, https://michaellevy.shinyapps.io/gwdegree/ | ||
BugReports: https://github.com/michaellevy/gwdegree/issues | ||
Depends: | ||
R (>= 3.2.3), | ||
ergm, | ||
ggplot2, | ||
magrittr, | ||
shiny, | ||
shinydashboard | ||
Imports: | ||
dplyr, | ||
gtools, | ||
magrittr, | ||
network, | ||
scales, | ||
sna, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
library(sna) | ||
context("clustering coefficient function") | ||
|
||
networks = list( | ||
nEmpty = gwdegree:::makeNetwork(100, 0), | ||
nFull = gwdegree:::makeNetwork(100, 1), | ||
nOther = gwdegree:::makeNetwork(100, .2) | ||
) | ||
|
||
test_that("Degree centralization is the same for my function as package:sna", | ||
expect_equal( | ||
sapply(networks, gwdegree:::degCent), | ||
sapply(networks, sna::centralization, sna::degree, "graph") | ||
)) | ||
|