Skip to content

Commit

Permalink
Merge pull request #87 from snlab-ch/develop
Browse files Browse the repository at this point in the history
Fixing CRAN submission issues
  • Loading branch information
jhollway authored Apr 13, 2021
2 parents b69dc38 + d70173d commit d3dcee6
Show file tree
Hide file tree
Showing 10 changed files with 48 additions and 58 deletions.
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@
^docs$
^pkgdown$
^cran-comments\.md$
^CRAN-RELEASE$
12 changes: 6 additions & 6 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@

# Checklist:

- [ ] PR form
- [ ] I have given this pull request an informative title
- [ ] Description above itemizes changes under subtitles, e.g. "## Collection""
- PR form
- [ ] This pull request has an informative title
- [ ] Description above itemizes changes under subtitles, e.g. "## Data""
- [ ] Any closed, fixed, or related issues are referenced and explained in the description above, e.g. "Fixed #0 by adding A"
- [ ] Package builds on my OS without issues
- [ ] PR checks all pass for latest commit
- PR checks all pass for latest commit
- [ ] CodeFactor check: Package improves or maintains good style
- [ ] Package builds on Mac
- [ ] Package builds on Windows
- [ ] Package builds on Linux
- [ ] CodeCov check: Package improves or maintains good test coverage
- [ ] CodeFactor check: Package improves or maintains good style
- [ ] Documentation
- Documentation
- [ ] Any new or modified functions or data have roxygen style documentation in their .R scripts
- [ ] Any longer functions are commented inline so that it is easier to debug in the future
- [ ] PR description above and the NEWS.md file are aligned
Expand Down
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: migraph
Title: Multimodal and Multilevel Network Analysis
Version: 0.6.1
Date: 2021-04-11
Version: 0.6.2
Date: 2021-04-13
Description: A set of tools that extend common social network analysis packages
for analysing multimodal and multilevel networks.
It includes functions for one- and two-mode (and sometimes three-mode)
Expand Down
23 changes: 2 additions & 21 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,21 +1,2 @@
MIT License

Copyright (c) 2020 James Hollway

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
YEAR: 2020
COPYRIGHT HOLDER: James Hollway
21 changes: 21 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# MIT License

Copyright (c) 2021 James Hollway

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
10 changes: 10 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
# migraph 0.6.2

2021-04-13

## Package

* Reran `usethis::use_mit_license("James Hollway")`. MIT License file now contains only the standard two lines.
* Removed `\dontrun` from examples. `netlm()` now runs in <5 seconds.
* Fixed missing website item

# migraph 0.6.1

2021-04-11
Expand Down
4 changes: 0 additions & 4 deletions R/create.R
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,7 @@ roll_over <- function(w){
#' #' @importFrom tidygraph as_tbl_graph
#' #' @importFrom igraph graph_from_incidence_matrix
#' #' @examples
#' #' \dontrun{
#' #' create_nest(10, 12)
#' #' }
#' #' @export
#' create_nest <- function(n1, n2,
#' as = c("tidygraph", "igraph", "matrix")) {
Expand All @@ -176,9 +174,7 @@ roll_over <- function(w){
#' #' @importFrom tidygraph as_tbl_graph
#' #' @importFrom igraph graph_from_incidence_matrix
#' #' @examples
#' #' \dontrun{
#' #' create_star(1, 12)
#' #'}
#' #' @export
#' create_star <- function(n1 = 1, n2,
#' as = c("tidygraph", "igraph", "matrix")){
Expand Down
24 changes: 2 additions & 22 deletions R/netlm.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,12 @@
#' @importFrom purrr map
#' @importFrom stats lm
#' @examples
#' \dontrun{
#' mat1 <- matrix(c(0,1,1,0,0,1,1,1),4,2)
#' mat2 <- matrix(c(0,1,0,1,0,1,0,1),4,2)
#' mat3 <- matrix(c(0,0,1,1,0,0,1,1),4,2)
#' lmat <- list(mat1 = mat1, mat2 = mat2, mat3 = mat3)
#' example <- netlm(mat1 ~ mat2 + mat3 + lmat)
#' }
#' model1 <- netlm(mat1 ~ mat2 + mat3, lmat)
#' summary(model1)
#' @export
netlm <- function(formula, data, ...){

Expand All @@ -40,15 +39,6 @@ netlm <- function(formula, data, ...){
#' By default, reps=1000.
#' @param ... Arguments passed on to `lm()`.
#' @importFrom stats ecdf lm
#' @examples
#' \dontrun{
#' mat1 <- matrix(c(0,1,1,0,0,1,1,1),4,2)
#' mat2 <- matrix(c(0,1,0,1,0,1,0,1),4,2)
#' mat3 <- matrix(c(0,0,1,1,0,0,1,1),4,2)
#' lmat <- list(mat1 = mat1, mat2 = mat2, mat3 = mat3)
#' example <- netlm(mat1 ~ mat2 + mat3 + lmat)
#' summary.netlm(example)
#' }
#' @export
summary.netlm <- function(object, reps = 1000, ...){

Expand Down Expand Up @@ -115,16 +105,6 @@ summary.netlm <- function(object, reps = 1000, ...){
#' @param digits the number of significant digits to use when printing.
#' @param signif.stars logical. If TRUE, ‘significance stars’ are printed for each coefficient.
#' @importFrom stats printCoefmat
#' @examples
#' \dontrun{
#' mat1 <- matrix(c(0,1,1,0,0,1,1,1),4,2)
#' mat2 <- matrix(c(0,1,0,1,0,1,0,1),4,2)
#' mat3 <- matrix(c(0,0,1,1,0,0,1,1),4,2)
#' lmat <- list(mat1 = mat1, mat2 = mat2, mat3 = mat3)
#' example <- netlm(mat1 ~ mat2 + mat3 + lmat)
#' summary.netlm(example)
#' print.summary.netlm(example)
#' }
#' @export
print.summary.netlm <- function(x,
digits = max(3, getOption("digits") - 3),
Expand Down
3 changes: 2 additions & 1 deletion cran-comments.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@

0 errors | 0 warnings | 0 notes

* This is a new release.
* Reran `usethis::use_mit_license("James Hollway")`. MIT License file now contains only the standard two lines.
* Removed `\dontrun` from examples. `netlm()` now runs in <5 seconds.
4 changes: 2 additions & 2 deletions pkgdown/_pkgdown.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
url: https://jhollway.github.io/migraph/
url: https://snlab-ch.github.io/migraph/
development:
mode: auto
template:
Expand Down Expand Up @@ -59,4 +59,4 @@ reference:
desc: "Functions for modelling multimodal and multilevel networks:"
contents:
- netlm
- blockmodel
- starts_with("blockmodel")

0 comments on commit d3dcee6

Please sign in to comment.