Skip to content

Commit 5fb95d2

Browse files
committed
Fixed internal issues flagged by CRAN, and updated to 1.18.1.
1 parent 40c251e commit 5fb95d2

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

ChangeLog

+4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
CHANGELOG:
2+
v1.18.1
3+
- Non-visible changes for CRAN compliance.
4+
- as.network.data.frame() now handles deleted edges correctly.
5+
- as.data.frame.network() can now mimic as_tibble_network() behavior.
26
v1.18.0
37
- Many network methods are now S3 generics (to facilitate objects like networkLite).
48
- get.dyads.eids now has an na.omit argument.

DESCRIPTION

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: network
2-
Version: 1.18.0
3-
Date: 2022-10-05
2+
Version: 1.18.1
3+
Date: 2023-01-24
44
Title: Classes for Relational Data
55
Authors@R: c(
66
person("Carter T.", "Butts", role=c("aut","cre"), email="[email protected]"),

man/loading.attributes.Rd

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/access.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# access.c
55
#
66
# Written by Carter T. Butts <[email protected]>
7-
# Last Modified 05/19/22
7+
# Last Modified 01/24/23
88
# Licensed under the GNU General Public License version 2 (June, 1991)
99
# or greater
1010
#
@@ -618,7 +618,7 @@ SEXP addEdges(SEXP x, SEXP tail, SEXP head, SEXP namesEval, SEXP valsEval, SEXP
618618
i=length(atlnam);
619619
PROTECT(atlnam = enlargeList(atlnam,length(atl)-i)); pc++;
620620
for(j=i;j<length(atl);j++){
621-
sprintf(buf,"%d",j);
621+
snprintf(buf,sizeof(buf),"%d",j);
622622
SET_STRING_ELT(atlnam,j,mkChar(buf));
623623
}
624624
}
@@ -905,7 +905,7 @@ SEXP addEdge_R(SEXP x, SEXP tail, SEXP head, SEXP namesEval, SEXP valsEval, SEXP
905905
i=length(atlnam);
906906
PROTECT(atlnam = enlargeList(atlnam,length(atl)-i)); pc++;
907907
for(j=i;j<length(atl);j++){
908-
sprintf(buf,"%d",j);
908+
snprintf(buf,sizeof(buf),"%d",j);
909909
SET_STRING_ELT(atlnam,j,mkChar(buf));
910910
}
911911
}

0 commit comments

Comments
 (0)