Skip to content

Commit d3dcee6

Browse files
authored
Merge pull request #87 from snlab-ch/develop
Fixing CRAN submission issues
2 parents b69dc38 + d70173d commit d3dcee6

10 files changed

+48
-58
lines changed

.Rbuildignore

+1
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@
88
^docs$
99
^pkgdown$
1010
^cran-comments\.md$
11+
^CRAN-RELEASE$

.github/pull_request_template.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@
22

33
# Checklist:
44

5-
- [ ] PR form
6-
- [ ] I have given this pull request an informative title
7-
- [ ] Description above itemizes changes under subtitles, e.g. "## Collection""
5+
- PR form
6+
- [ ] This pull request has an informative title
7+
- [ ] Description above itemizes changes under subtitles, e.g. "## Data""
88
- [ ] Any closed, fixed, or related issues are referenced and explained in the description above, e.g. "Fixed #0 by adding A"
99
- [ ] Package builds on my OS without issues
10-
- [ ] PR checks all pass for latest commit
10+
- PR checks all pass for latest commit
11+
- [ ] CodeFactor check: Package improves or maintains good style
1112
- [ ] Package builds on Mac
1213
- [ ] Package builds on Windows
1314
- [ ] Package builds on Linux
1415
- [ ] CodeCov check: Package improves or maintains good test coverage
15-
- [ ] CodeFactor check: Package improves or maintains good style
16-
- [ ] Documentation
16+
- Documentation
1717
- [ ] Any new or modified functions or data have roxygen style documentation in their .R scripts
1818
- [ ] Any longer functions are commented inline so that it is easier to debug in the future
1919
- [ ] PR description above and the NEWS.md file are aligned

DESCRIPTION

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: migraph
22
Title: Multimodal and Multilevel Network Analysis
3-
Version: 0.6.1
4-
Date: 2021-04-11
3+
Version: 0.6.2
4+
Date: 2021-04-13
55
Description: A set of tools that extend common social network analysis packages
66
for analysing multimodal and multilevel networks.
77
It includes functions for one- and two-mode (and sometimes three-mode)

LICENSE

+2-21
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,2 @@
1-
MIT License
2-
3-
Copyright (c) 2020 James Hollway
4-
5-
Permission is hereby granted, free of charge, to any person obtaining a copy
6-
of this software and associated documentation files (the "Software"), to deal
7-
in the Software without restriction, including without limitation the rights
8-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9-
copies of the Software, and to permit persons to whom the Software is
10-
furnished to do so, subject to the following conditions:
11-
12-
The above copyright notice and this permission notice shall be included in all
13-
copies or substantial portions of the Software.
14-
15-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21-
SOFTWARE.
1+
YEAR: 2020
2+
COPYRIGHT HOLDER: James Hollway

LICENSE.md

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# MIT License
2+
3+
Copyright (c) 2021 James Hollway
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

NEWS.md

+10
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
# migraph 0.6.2
2+
3+
2021-04-13
4+
5+
## Package
6+
7+
* Reran `usethis::use_mit_license("James Hollway")`. MIT License file now contains only the standard two lines.
8+
* Removed `\dontrun` from examples. `netlm()` now runs in <5 seconds.
9+
* Fixed missing website item
10+
111
# migraph 0.6.1
212

313
2021-04-11

R/create.R

-4
Original file line numberDiff line numberDiff line change
@@ -154,9 +154,7 @@ roll_over <- function(w){
154154
#' #' @importFrom tidygraph as_tbl_graph
155155
#' #' @importFrom igraph graph_from_incidence_matrix
156156
#' #' @examples
157-
#' #' \dontrun{
158157
#' #' create_nest(10, 12)
159-
#' #' }
160158
#' #' @export
161159
#' create_nest <- function(n1, n2,
162160
#' as = c("tidygraph", "igraph", "matrix")) {
@@ -176,9 +174,7 @@ roll_over <- function(w){
176174
#' #' @importFrom tidygraph as_tbl_graph
177175
#' #' @importFrom igraph graph_from_incidence_matrix
178176
#' #' @examples
179-
#' #' \dontrun{
180177
#' #' create_star(1, 12)
181-
#' #'}
182178
#' #' @export
183179
#' create_star <- function(n1 = 1, n2,
184180
#' as = c("tidygraph", "igraph", "matrix")){

R/netlm.R

+2-22
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,12 @@
1010
#' @importFrom purrr map
1111
#' @importFrom stats lm
1212
#' @examples
13-
#' \dontrun{
1413
#' mat1 <- matrix(c(0,1,1,0,0,1,1,1),4,2)
1514
#' mat2 <- matrix(c(0,1,0,1,0,1,0,1),4,2)
1615
#' mat3 <- matrix(c(0,0,1,1,0,0,1,1),4,2)
1716
#' lmat <- list(mat1 = mat1, mat2 = mat2, mat3 = mat3)
18-
#' example <- netlm(mat1 ~ mat2 + mat3 + lmat)
19-
#' }
17+
#' model1 <- netlm(mat1 ~ mat2 + mat3, lmat)
18+
#' summary(model1)
2019
#' @export
2120
netlm <- function(formula, data, ...){
2221

@@ -40,15 +39,6 @@ netlm <- function(formula, data, ...){
4039
#' By default, reps=1000.
4140
#' @param ... Arguments passed on to `lm()`.
4241
#' @importFrom stats ecdf lm
43-
#' @examples
44-
#' \dontrun{
45-
#' mat1 <- matrix(c(0,1,1,0,0,1,1,1),4,2)
46-
#' mat2 <- matrix(c(0,1,0,1,0,1,0,1),4,2)
47-
#' mat3 <- matrix(c(0,0,1,1,0,0,1,1),4,2)
48-
#' lmat <- list(mat1 = mat1, mat2 = mat2, mat3 = mat3)
49-
#' example <- netlm(mat1 ~ mat2 + mat3 + lmat)
50-
#' summary.netlm(example)
51-
#' }
5242
#' @export
5343
summary.netlm <- function(object, reps = 1000, ...){
5444

@@ -115,16 +105,6 @@ summary.netlm <- function(object, reps = 1000, ...){
115105
#' @param digits the number of significant digits to use when printing.
116106
#' @param signif.stars logical. If TRUE, ‘significance stars’ are printed for each coefficient.
117107
#' @importFrom stats printCoefmat
118-
#' @examples
119-
#' \dontrun{
120-
#' mat1 <- matrix(c(0,1,1,0,0,1,1,1),4,2)
121-
#' mat2 <- matrix(c(0,1,0,1,0,1,0,1),4,2)
122-
#' mat3 <- matrix(c(0,0,1,1,0,0,1,1),4,2)
123-
#' lmat <- list(mat1 = mat1, mat2 = mat2, mat3 = mat3)
124-
#' example <- netlm(mat1 ~ mat2 + mat3 + lmat)
125-
#' summary.netlm(example)
126-
#' print.summary.netlm(example)
127-
#' }
128108
#' @export
129109
print.summary.netlm <- function(x,
130110
digits = max(3, getOption("digits") - 3),

cran-comments.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@
1111

1212
0 errors | 0 warnings | 0 notes
1313

14-
* This is a new release.
14+
* Reran `usethis::use_mit_license("James Hollway")`. MIT License file now contains only the standard two lines.
15+
* Removed `\dontrun` from examples. `netlm()` now runs in <5 seconds.

pkgdown/_pkgdown.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
url: https://jhollway.github.io/migraph/
1+
url: https://snlab-ch.github.io/migraph/
22
development:
33
mode: auto
44
template:
@@ -59,4 +59,4 @@ reference:
5959
desc: "Functions for modelling multimodal and multilevel networks:"
6060
contents:
6161
- netlm
62-
- blockmodel
62+
- starts_with("blockmodel")

0 commit comments

Comments
 (0)