* installing *source* package ‘ernm’ ...
** this is package ‘ernm’ version ‘1.0.4’
** package ‘ernm’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
using C++ compiler: ‘Apple clang version 14.0.0 (clang-1400.0.29.202)’
using SDK: ‘MacOSX11.3.sdk’
clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I../inst/include -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.5/BH/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.5/Rcpp/include' -I/opt/R/arm64/include -fPIC -falign-functions=64 -Wall -g -O2 -c Ranker.cpp -o Ranker.o
clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I../inst/include -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.5/BH/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.5/Rcpp/include' -I/opt/R/arm64/include -fPIC -falign-functions=64 -Wall -g -O2 -c RcppExports.cpp -o RcppExports.o
In file included from RcppExports.cpp:4:
In file included from ./../inst/include/ernm.h:14:
../inst/include/DyadToggles.h:1610:7: warning: variable 'degree' set but not used [-Wunused-but-set-variable]
int degree;
^
1 warning generated.
clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I../inst/include -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.5/BH/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.5/Rcpp/include' -I/opt/R/arm64/include -fPIC -falign-functions=64 -Wall -g -O2 -c RcppModule.cpp -o RcppModule.o
In file included from RcppModule.cpp:6:
../inst/include/DyadToggles.h:1610:7: warning: variable 'degree' set but not used [-Wunused-but-set-variable]
int degree;
^
In file included from RcppModule.cpp:8:
In file included from ../inst/include/MetropolisHastings.h:13:
../inst/include/ToggleController.h:73:9: warning: instantiation of variable 'ernm::ToggleController<ernm::Directed>::dyadMapPtr' required here, but no definition is available [-Wundefined-var-template]
pS = dyadMapPtr->at(name);
^
../inst/include/MetropolisHastings.h:163:56: note: in instantiation of member function 'ernm::ToggleController<ernm::Directed>::getDyadToggle' requested here
dyadToggle = DyadTogglePtr(ToggleController<Engine>::getDyadToggle(name,params));
^
RcppModule.cpp:82:63: note: in instantiation of member function 'ernm::MetropolisHastings<ernm::Directed>::setDyadToggleType' requested here
.method("setDyadToggleType",&MetropolisHastings<Directed>::setDyadToggleType)
^
../inst/include/ToggleController.h:26:18: note: forward declaration of template entity is here
static DtMapPtr dyadMapPtr;
^
../inst/include/ToggleController.h:73:9: note: add an explicit instantiation declaration to suppress this warning if 'ernm::ToggleController<ernm::Directed>::dyadMapPtr' is explicitly instantiated in another translation unit
pS = dyadMapPtr->at(name);
^
../inst/include/ToggleController.h:93:9: warning: instantiation of variable 'ernm::ToggleController<ernm::Directed>::vertexMapPtr' required here, but no definition is available [-Wundefined-var-template]
pS = vertexMapPtr->at(name);
^
../inst/include/MetropolisHastings.h:171:58: note: in instantiation of member function 'ernm::ToggleController<ernm::Directed>::getVertexToggle' requested here
vertToggle = VertexTogglePtr(ToggleController<Engine>::getVertexToggle(name,params));
^
RcppModule.cpp:83:65: note: in instantiation of member function 'ernm::MetropolisHastings<ernm::Directed>::setVertexToggleType' requested here
.method("setVertexToggleType",&MetropolisHastings<Directed>::setVertexToggleType)
^
../inst/include/ToggleController.h:27:18: note: forward declaration of template entity is here
static VtMapPtr vertexMapPtr;
^
../inst/include/ToggleController.h:93:9: note: add an explicit instantiation declaration to suppress this warning if 'ernm::ToggleController<ernm::Directed>::vertexMapPtr' is explicitly instantiated in another translation unit
pS = vertexMapPtr->at(name);
^
../inst/include/ToggleController.h:73:9: warning: instantiation of variable 'ernm::ToggleController<ernm::Undirected>::dyadMapPtr' required here, but no definition is available [-Wundefined-var-template]
pS = dyadMapPtr->at(name);
^
../inst/include/MetropolisHastings.h:163:56: note: in instantiation of member function 'ernm::ToggleController<ernm::Undirected>::getDyadToggle' requested here
dyadToggle = DyadTogglePtr(ToggleController<Engine>::getDyadToggle(name,params));
^
RcppModule.cpp:94:65: note: in instantiation of member function 'ernm::MetropolisHastings<ernm::Undirected>::setDyadToggleType' requested here
.method("setDyadToggleType",&MetropolisHastings<Undirected>::setDyadToggleType)
^
../inst/include/ToggleController.h:26:18: note: forward declaration of template entity is here
static DtMapPtr dyadMapPtr;
^
../inst/include/ToggleController.h:73:9: note: add an explicit instantiation declaration to suppress this warning if 'ernm::ToggleController<ernm::Undirected>::dyadMapPtr' is explicitly instantiated in another translation unit
pS = dyadMapPtr->at(name);
^
../inst/include/ToggleController.h:93:9: warning: instantiation of variable 'ernm::ToggleController<ernm::Undirected>::vertexMapPtr' required here, but no definition is available [-Wundefined-var-template]
pS = vertexMapPtr->at(name);
^
../inst/include/MetropolisHastings.h:171:58: note: in instantiation of member function 'ernm::ToggleController<ernm::Undirected>::getVertexToggle' requested here
vertToggle = VertexTogglePtr(ToggleController<Engine>::getVertexToggle(name,params));
^
RcppModule.cpp:95:67: note: in instantiation of member function 'ernm::MetropolisHastings<ernm::Undirected>::setVertexToggleType' requested here
.method("setVertexToggleType",&MetropolisHastings<Undirected>::setVertexToggleType)
^
../inst/include/ToggleController.h:27:18: note: forward declaration of template entity is here
static VtMapPtr vertexMapPtr;
^
../inst/include/ToggleController.h:93:9: note: add an explicit instantiation declaration to suppress this warning if 'ernm::ToggleController<ernm::Undirected>::vertexMapPtr' is explicitly instantiated in another translation unit
pS = vertexMapPtr->at(name);
^
In file included from RcppModule.cpp:8:
In file included from ../inst/include/MetropolisHastings.h:11:
In file included from ../inst/include/Model.h:13:
../inst/include/StatController.h:61:9: warning: instantiation of variable 'ernm::StatController<ernm::Undirected>::statMapPtr' required here, but no definition is available [-Wundefined-var-template]
pS = statMapPtr->at(name);
^
../inst/include/Model.h:452:54: note: in instantiation of member function 'ernm::StatController<ernm::Undirected>::getStat' requested here
AbstractStat<Engine>* ps = StatController<Engine>::getStat(name, params);
^
RcppModule.cpp:140:46: note: in instantiation of member function 'ernm::Model<ernm::Undirected>::addStatistic' requested here
.method("addStatistic",&Model<Undirected>::addStatistic)
^
../inst/include/StatController.h:38:20: note: forward declaration of template entity is here
static StatMapPtr statMapPtr;
^
../inst/include/StatController.h:61:9: note: add an explicit instantiation declaration to suppress this warning if 'ernm::StatController<ernm::Undirected>::statMapPtr' is explicitly instantiated in another translation unit
pS = statMapPtr->at(name);
^
../inst/include/StatController.h:77:9: warning: instantiation of variable 'ernm::StatController<ernm::Undirected>::offsetMapPtr' required here, but no definition is available [-Wundefined-var-template]
pS = offsetMapPtr->at(name);
^
../inst/include/Model.h:465:56: note: in instantiation of member function 'ernm::StatController<ernm::Undirected>::getOffset' requested here
AbstractOffset<Engine>* ps = StatController<Engine>::getOffset(name, params);
^
RcppModule.cpp:141:43: note: in instantiation of member function 'ernm::Model<ernm::Undirected>::addOffset' requested here
.method("addOffset",&Model<Undirected>::addOffset)
^
../inst/include/StatController.h:39:22: note: forward declaration of template entity is here
static OffsetMapPtr offsetMapPtr;
^
../inst/include/StatController.h:77:9: note: add an explicit instantiation declaration to suppress this warning if 'ernm::StatController<ernm::Undirected>::offsetMapPtr' is explicitly instantiated in another translation unit
pS = offsetMapPtr->at(name);
^
../inst/include/StatController.h:61:9: warning: instantiation of variable 'ernm::StatController<ernm::Directed>::statMapPtr' required here, but no definition is available [-Wundefined-var-template]
pS = statMapPtr->at(name);
^
../inst/include/Model.h:452:54: note: in instantiation of member function 'ernm::StatController<ernm::Directed>::getStat' requested here
AbstractStat<Engine>* ps = StatController<Engine>::getStat(name, params);
^
RcppModule.cpp:161:44: note: in instantiation of member function 'ernm::Model<ernm::Directed>::addStatistic' requested here
.method("addStatistic",&Model<Directed>::addStatistic)
^
../inst/include/StatController.h:38:20: note: forward declaration of template entity is here
static StatMapPtr statMapPtr;
^
../inst/include/StatController.h:61:9: note: add an explicit instantiation declaration to suppress this warning if 'ernm::StatController<ernm::Directed>::statMapPtr' is explicitly instantiated in another translation unit
pS = statMapPtr->at(name);
^
../inst/include/StatController.h:77:9: warning: instantiation of variable 'ernm::StatController<ernm::Directed>::offsetMapPtr' required here, but no definition is available [-Wundefined-var-template]
pS = offsetMapPtr->at(name);
^
../inst/include/Model.h:465:56: note: in instantiation of member function 'ernm::StatController<ernm::Directed>::getOffset' requested here
AbstractOffset<Engine>* ps = StatController<Engine>::getOffset(name, params);
^
RcppModule.cpp:162:41: note: in instantiation of member function 'ernm::Model<ernm::Directed>::addOffset' requested here
.method("addOffset",&Model<Directed>::addOffset)
^
../inst/include/StatController.h:39:22: note: forward declaration of template entity is here
static OffsetMapPtr offsetMapPtr;
^
../inst/include/StatController.h:77:9: note: add an explicit instantiation declaration to suppress this warning if 'ernm::StatController<ernm::Directed>::offsetMapPtr' is explicitly instantiated in another translation unit
pS = offsetMapPtr->at(name);
^
9 warnings generated.
clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I../inst/include -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.5/BH/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.5/Rcpp/include' -I/opt/R/arm64/include -fPIC -falign-functions=64 -Wall -g -O2 -c StatController.cpp -o StatController.o
In file included from StatController.cpp:3:
../inst/include/Stats.h:410:11: warning: variable 'nExpected' set but not used [-Wunused-but-set-variable]
double nExpected = nEdgesBetweenNbrs * nPosTri / nPosEdges;
^
../inst/include/Stats.h:456:11: warning: variable 'curNExpected' set but not used [-Wunused-but-set-variable]
double curNExpected = curNEdgesBetweenNbrs * nPosTri / nPosEdges;
^
../inst/include/Stats.h:492:11: warning: variable 'curNExpected' set but not used [-Wunused-but-set-variable]
double curNExpected = curNEdgesBetweenNbrs * nPosTri / nPosEdges;
^
../inst/include/Stats.h:527:11: warning: variable 'curNExpected' set but not used [-Wunused-but-set-variable]
double curNExpected = curNEdgesBetweenNbrs * curNPosTri / curNPosEdges;
^
../inst/include/Stats.h:528:11: warning: variable 'newNExpected' set but not used [-Wunused-but-set-variable]
double newNExpected = newNEdgesBetweenNbrs * newNPosTri / newNPosEdges;
^
../inst/include/Stats.h:1450:14: warning: unused variable 'addingEdge' [-Wunused-variable]
bool addingEdge = !net.hasEdge(from,to);
^
../inst/include/Stats.h:1636:10: warning: unused variable 'skew' [-Wunused-variable]
double skew = 0.0;
^
../inst/include/Stats.h:1635:10: warning: unused variable 'var' [-Wunused-variable]
double var = 0.0;
^
../inst/include/Stats.h:1748:10: warning: variable 'var' set but not used [-Wunused-but-set-variable]
double var = 0.0;
^
../inst/include/Stats.h:1879:10: warning: variable 'sum' set but not used [-Wunused-but-set-variable]
double sum = 0.0;
^
../inst/include/Stats.h:2132:10: warning: variable 'deg' set but not used [-Wunused-but-set-variable]
double deg = net.degree(from);
^
../inst/include/Stats.h:2121:10: warning: unused variable 'fromDeg' [-Wunused-variable]
double fromDeg;
^
../inst/include/Stats.h:2120:10: warning: unused variable 'toDeg' [-Wunused-variable]
double toDeg;
^
../inst/include/Stats.h:2212:10: warning: variable 'var' set but not used [-Wunused-but-set-variable]
double var = 0.0;
^
../inst/include/Stats.h:2266:10: warning: unused variable 'mean' [-Wunused-variable]
double mean = sum / n;
^
15 warnings generated.
clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I../inst/include -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.5/BH/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.5/Rcpp/include' -I/opt/R/arm64/include -fPIC -falign-functions=64 -Wall -g -O2 -c ToggleController.cpp -o ToggleController.o
In file included from ToggleController.cpp:11:
../inst/include/DyadToggles.h:1610:7: warning: variable 'degree' set but not used [-Wunused-but-set-variable]
int degree;
^
1 warning generated.
clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I../inst/include -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.5/BH/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.5/Rcpp/include' -I/opt/R/arm64/include -fPIC -falign-functions=64 -Wall -g -O2 -c VarAttrib.cpp -o VarAttrib.o
clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I../inst/include -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.5/BH/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.5/Rcpp/include' -I/opt/R/arm64/include -fPIC -falign-functions=64 -Wall -g -O2 -c main.cpp -o main.o
clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I../inst/include -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.5/BH/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.5/Rcpp/include' -I/opt/R/arm64/include -fPIC -falign-functions=64 -Wall -g -O2 -c test.cpp -o test.o
clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I../inst/include -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.5/BH/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.5/Rcpp/include' -I/opt/R/arm64/include -fPIC -falign-functions=64 -Wall -g -O2 -c test_BinaryNet.cpp -o test_BinaryNet.o
clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I../inst/include -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.5/BH/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.5/Rcpp/include' -I/opt/R/arm64/include -fPIC -falign-functions=64 -Wall -g -O2 -c test_Constraint.cpp -o test_Constraint.o
In file included from test_Constraint.cpp:12:
../inst/include/Stats.h:410:11: warning: variable 'nExpected' set but not used [-Wunused-but-set-variable]
double nExpected = nEdgesBetweenNbrs * nPosTri / nPosEdges;
^
../inst/include/Stats.h:456:11: warning: variable 'curNExpected' set but not used [-Wunused-but-set-variable]
double curNExpected = curNEdgesBetweenNbrs * nPosTri / nPosEdges;
^
../inst/include/Stats.h:492:11: warning: variable 'curNExpected' set but not used [-Wunused-but-set-variable]
double curNExpected = curNEdgesBetweenNbrs * nPosTri / nPosEdges;
^
../inst/include/Stats.h:527:11: warning: variable 'curNExpected' set but not used [-Wunused-but-set-variable]
double curNExpected = curNEdgesBetweenNbrs * curNPosTri / curNPosEdges;
^
../inst/include/Stats.h:528:11: warning: variable 'newNExpected' set but not used [-Wunused-but-set-variable]
double newNExpected = newNEdgesBetweenNbrs * newNPosTri / newNPosEdges;
^
../inst/include/Stats.h:1450:14: warning: unused variable 'addingEdge' [-Wunused-variable]
bool addingEdge = !net.hasEdge(from,to);
^
../inst/include/Stats.h:1636:10: warning: unused variable 'skew' [-Wunused-variable]
double skew = 0.0;
^
../inst/include/Stats.h:1635:10: warning: unused variable 'var' [-Wunused-variable]
double var = 0.0;
^
../inst/include/Stats.h:1748:10: warning: variable 'var' set but not used [-Wunused-but-set-variable]
double var = 0.0;
^
../inst/include/Stats.h:1879:10: warning: variable 'sum' set but not used [-Wunused-but-set-variable]
double sum = 0.0;
^
../inst/include/Stats.h:2121:10: warning: unused variable 'fromDeg' [-Wunused-variable]
double fromDeg;
^
../inst/include/Stats.h:2120:10: warning: unused variable 'toDeg' [-Wunused-variable]
double toDeg;
^
../inst/include/Stats.h:2132:10: warning: variable 'deg' set but not used [-Wunused-but-set-variable]
double deg = net.degree(from);
^
../inst/include/Stats.h:2212:10: warning: variable 'var' set but not used [-Wunused-but-set-variable]
double var = 0.0;
^
../inst/include/Stats.h:2266:10: warning: unused variable 'mean' [-Wunused-variable]
double mean = sum / n;
^
In file included from test_Constraint.cpp:17:
../inst/include/DyadToggles.h:1610:7: warning: variable 'degree' set but not used [-Wunused-but-set-variable]
int degree;
^
16 warnings generated.
clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I../inst/include -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.5/BH/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.5/Rcpp/include' -I/opt/R/arm64/include -fPIC -falign-functions=64 -Wall -g -O2 -c test_Stat.cpp -o test_Stat.o
In file included from test_Stat.cpp:11:
../inst/include/Stats.h:410:11: warning: variable 'nExpected' set but not used [-Wunused-but-set-variable]
double nExpected = nEdgesBetweenNbrs * nPosTri / nPosEdges;
^
../inst/include/Stats.h:456:11: warning: variable 'curNExpected' set but not used [-Wunused-but-set-variable]
double curNExpected = curNEdgesBetweenNbrs * nPosTri / nPosEdges;
^
../inst/include/Stats.h:492:11: warning: variable 'curNExpected' set but not used [-Wunused-but-set-variable]
double curNExpected = curNEdgesBetweenNbrs * nPosTri / nPosEdges;
^
../inst/include/Stats.h:527:11: warning: variable 'curNExpected' set but not used [-Wunused-but-set-variable]
double curNExpected = curNEdgesBetweenNbrs * curNPosTri / curNPosEdges;
^
../inst/include/Stats.h:528:11: warning: variable 'newNExpected' set but not used [-Wunused-but-set-variable]
double newNExpected = newNEdgesBetweenNbrs * newNPosTri / newNPosEdges;
^
../inst/include/Stats.h:1450:14: warning: unused variable 'addingEdge' [-Wunused-variable]
bool addingEdge = !net.hasEdge(from,to);
^
../inst/include/Stats.h:1636:10: warning: unused variable 'skew' [-Wunused-variable]
double skew = 0.0;
^
../inst/include/Stats.h:1635:10: warning: unused variable 'var' [-Wunused-variable]
double var = 0.0;
^
../inst/include/Stats.h:1748:10: warning: variable 'var' set but not used [-Wunused-but-set-variable]
double var = 0.0;
^
../inst/include/Stats.h:1879:10: warning: variable 'sum' set but not used [-Wunused-but-set-variable]
double sum = 0.0;
^
../inst/include/Stats.h:2121:10: warning: unused variable 'fromDeg' [-Wunused-variable]
double fromDeg;
^
../inst/include/Stats.h:2120:10: warning: unused variable 'toDeg' [-Wunused-variable]
double toDeg;
^
../inst/include/Stats.h:2132:10: warning: variable 'deg' set but not used [-Wunused-but-set-variable]
double deg = net.degree(from);
^
../inst/include/Stats.h:2212:10: warning: variable 'var' set but not used [-Wunused-but-set-variable]
double var = 0.0;
^
../inst/include/Stats.h:2266:10: warning: unused variable 'mean' [-Wunused-variable]
double mean = sum / n;
^
In file included from test_Stat.cpp:14:
../inst/include/DyadToggles.h:1610:7: warning: variable 'degree' set but not used [-Wunused-but-set-variable]
int degree;
^
16 warnings generated.
clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I../inst/include -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.5/BH/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.5/Rcpp/include' -I/opt/R/arm64/include -fPIC -falign-functions=64 -Wall -g -O2 -c test_TaperedModel.cpp -o test_TaperedModel.o
In file included from test_TaperedModel.cpp:14:
../inst/include/Stats.h:410:11: warning: variable 'nExpected' set but not used [-Wunused-but-set-variable]
double nExpected = nEdgesBetweenNbrs * nPosTri / nPosEdges;
^
../inst/include/Stats.h:456:11: warning: variable 'curNExpected' set but not used [-Wunused-but-set-variable]
double curNExpected = curNEdgesBetweenNbrs * nPosTri / nPosEdges;
^
../inst/include/Stats.h:492:11: warning: variable 'curNExpected' set but not used [-Wunused-but-set-variable]
double curNExpected = curNEdgesBetweenNbrs * nPosTri / nPosEdges;
^
../inst/include/Stats.h:527:11: warning: variable 'curNExpected' set but not used [-Wunused-but-set-variable]
double curNExpected = curNEdgesBetweenNbrs * curNPosTri / curNPosEdges;
^
../inst/include/Stats.h:528:11: warning: variable 'newNExpected' set but not used [-Wunused-but-set-variable]
double newNExpected = newNEdgesBetweenNbrs * newNPosTri / newNPosEdges;
^
../inst/include/Stats.h:1450:14: warning: unused variable 'addingEdge' [-Wunused-variable]
bool addingEdge = !net.hasEdge(from,to);
^
../inst/include/Stats.h:1636:10: warning: unused variable 'skew' [-Wunused-variable]
double skew = 0.0;
^
../inst/include/Stats.h:1635:10: warning: unused variable 'var' [-Wunused-variable]
double var = 0.0;
^
../inst/include/Stats.h:1748:10: warning: variable 'var' set but not used [-Wunused-but-set-variable]
double var = 0.0;
^
../inst/include/Stats.h:1879:10: warning: variable 'sum' set but not used [-Wunused-but-set-variable]
double sum = 0.0;
^
../inst/include/Stats.h:2121:10: warning: unused variable 'fromDeg' [-Wunused-variable]
double fromDeg;
^
../inst/include/Stats.h:2120:10: warning: unused variable 'toDeg' [-Wunused-variable]
double toDeg;
^
../inst/include/Stats.h:2132:10: warning: variable 'deg' set but not used [-Wunused-but-set-variable]
double deg = net.degree(from);
^
../inst/include/Stats.h:2212:10: warning: variable 'var' set but not used [-Wunused-but-set-variable]
double var = 0.0;
^
../inst/include/Stats.h:2266:10: warning: unused variable 'mean' [-Wunused-variable]
double mean = sum / n;
^
In file included from test_TaperedModel.cpp:17:
../inst/include/DyadToggles.h:1610:7: warning: variable 'degree' set but not used [-Wunused-but-set-variable]
int degree;
^
16 warnings generated.
clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I../inst/include -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.5/BH/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.5/Rcpp/include' -I/opt/R/arm64/include -fPIC -falign-functions=64 -Wall -g -O2 -c test_Toggle.cpp -o test_Toggle.o
In file included from test_Toggle.cpp:11:
../inst/include/Stats.h:410:11: warning: variable 'nExpected' set but not used [-Wunused-but-set-variable]
double nExpected = nEdgesBetweenNbrs * nPosTri / nPosEdges;
^
../inst/include/Stats.h:456:11: warning: variable 'curNExpected' set but not used [-Wunused-but-set-variable]
double curNExpected = curNEdgesBetweenNbrs * nPosTri / nPosEdges;
^
../inst/include/Stats.h:492:11: warning: variable 'curNExpected' set but not used [-Wunused-but-set-variable]
double curNExpected = curNEdgesBetweenNbrs * nPosTri / nPosEdges;
^
../inst/include/Stats.h:527:11: warning: variable 'curNExpected' set but not used [-Wunused-but-set-variable]
double curNExpected = curNEdgesBetweenNbrs * curNPosTri / curNPosEdges;
^
../inst/include/Stats.h:528:11: warning: variable 'newNExpected' set but not used [-Wunused-but-set-variable]
double newNExpected = newNEdgesBetweenNbrs * newNPosTri / newNPosEdges;
^
../inst/include/Stats.h:1450:14: warning: unused variable 'addingEdge' [-Wunused-variable]
bool addingEdge = !net.hasEdge(from,to);
^
../inst/include/Stats.h:1636:10: warning: unused variable 'skew' [-Wunused-variable]
double skew = 0.0;
^
../inst/include/Stats.h:1635:10: warning: unused variable 'var' [-Wunused-variable]
double var = 0.0;
^
../inst/include/Stats.h:1748:10: warning: variable 'var' set but not used [-Wunused-but-set-variable]
double var = 0.0;
^
../inst/include/Stats.h:1879:10: warning: variable 'sum' set but not used [-Wunused-but-set-variable]
double sum = 0.0;
^
../inst/include/Stats.h:2120:10: warning: unused variable 'toDeg' [-Wunused-variable]
double toDeg;
^
../inst/include/Stats.h:2121:10: warning: unused variable 'fromDeg' [-Wunused-variable]
double fromDeg;
^
../inst/include/Stats.h:2132:10: warning: variable 'deg' set but not used [-Wunused-but-set-variable]
double deg = net.degree(from);
^
../inst/include/Stats.h:2212:10: warning: variable 'var' set but not used [-Wunused-but-set-variable]
double var = 0.0;
^
../inst/include/Stats.h:2266:10: warning: unused variable 'mean' [-Wunused-variable]
double mean = sum / n;
^
In file included from test_Toggle.cpp:14:
../inst/include/DyadToggles.h:1610:7: warning: variable 'degree' set but not used [-Wunused-but-set-variable]
int degree;
^
16 warnings generated.
clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I../inst/include -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.5/BH/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.5/Rcpp/include' -I/opt/R/arm64/include -fPIC -falign-functions=64 -Wall -g -O2 -c util.cpp -o util.o
clang++ -arch arm64 -std=gnu++17 -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -L/Library/Frameworks/R.framework/Resources/lib -L/opt/R/arm64/lib -o ernm.so Ranker.o RcppExports.o RcppModule.o StatController.o ToggleController.o VarAttrib.o main.o test.o test_BinaryNet.o test_Constraint.o test_Stat.o test_TaperedModel.o test_Toggle.o util.o -F/Library/Frameworks/R.framework/.. -framework R
installing to /Volumes/Builds/packages/big-sur-arm64/results/4.5/ernm.Rcheck/00LOCK-ernm/00new/ernm/libs
** generating debug symbols (dSYM)
** R
** data
*** moving datasets to lazyload DB
** inst
** byte-compile and prepare package for lazy loading
in method for ‘[’ with signature ‘"Rcpp_DirectedNet"’: no definition for class “Rcpp_DirectedNet”
in method for ‘[’ with signature ‘"Rcpp_UndirectedNet"’: no definition for class “Rcpp_UndirectedNet”
in method for ‘[<-’ with signature ‘"Rcpp_DirectedNet"’: no definition for class “Rcpp_DirectedNet”
in method for ‘[<-’ with signature ‘"Rcpp_UndirectedNet"’: no definition for class “Rcpp_UndirectedNet”
** help
*** installing help indices
*** copying figures
** building package indices
** testing if installed package can be loaded from temporary location
** checking absolute paths in shared objects and dynamic libraries
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (ernm)