R Under development (unstable) (2024-07-01 r86857 ucrt) -- "Unsuffered Consequences" Copyright (C) 2024 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > # part of the Statnet suite > # of packages for network analysis, http://statnet.org . > # > # This software is distributed under the GPL-3 license. It is free, > # open source, and has the attribution requirements (GPL Section 7) at > # http://statnet.org/attribution > # > # Copyright 2012-2013 Statnet Commons > ####################################################################### > > # crude tests for some of the basic file writing > # does not test that output is correct, just that code runs > require(testthat) Loading required package: testthat > require(ndtv) Loading required package: ndtv Loading required package: network 'network' 1.18.2 (2023-12-04), part of the Statnet Project * 'news(package="network")' for changes since last version * 'citation("network")' for citation information * 'https://statnet.org' for help, support, and other information Loading required package: networkDynamic 'networkDynamic' 0.11.4 (2023-12-10?), part of the Statnet Project * 'news(package="networkDynamic")' for changes since last version * 'citation("networkDynamic")' for citation information * 'https://statnet.org' for help, support, and other information Loading required package: animation Loading required package: sna Loading required package: statnet.common Attaching package: 'statnet.common' The following objects are masked from 'package:base': attr, order sna: Tools for Social Network Analysis Version 2.7-2 created on 2023-12-05. copyright (c) 2005, Carter T. Butts, University of California-Irvine For citation information, type citation("sna"). Type help(package="sna") to get started. 'ndtv' 0.13.4 (2023-06-30), part of the Statnet Project * 'news(package="ndtv")' for changes since last version * 'citation("ndtv")' for citation information * 'https://statnet.org' for help, support, and other information > data("toy_epi_sim") > > # fudge some attributes > toy_epi_sim%v%'x'<-runif(network.size(toy_epi_sim)) > toy_epi_sim%v%'y'<-runif(network.size(toy_epi_sim)) > toy_epi_sim%v%'z'<-runif(network.size(toy_epi_sim)) > toy_epi_sim%v%'color'<-'blue' > toy_epi_sim%v%'shape'<-'rect' > toy_epi_sim%v%'label'<-LETTERS > > > toy_epi_sim%e%'color'<-'gray' > toy_epi_sim%e%'width'<-2 > toy_epi_sim%e%'weight'<-runif(network.edgecount(toy_epi_sim)) > > export.pajek.net(toy_epi_sim,filename='test.net') > > proc.time() user system elapsed 1.15 0.26 1.40