lologPackageSkeleton {lolog}R Documentation

Create a skeleton for a package extending lolog

Description

Create a skeleton for a package extending lolog

Usage

lologPackageSkeleton(path = ".")

Arguments

path

where to create the package

Details

lolog is a modular package, and can be extended at both the R and C++ level. This function will build a package skeleton that can be used as a starting point for development. To create the package in the current directory run:

lologPackageSkeleton()

Build and install the package from the command line with

R CMD build LologExtension

R CMD INSTALL LologExtension_1.0.tar.gz

See Also

inlineLologPlugin

Examples


## Not run: 

#install package
lologPackageSkeleton()
system("R CMD build LologExtension")
system("R CMD INSTALL LologExtension_1.0.tar.gz")

library(LologExtension) #Load package

# Run model with new minDegree statistic
library(network)
m <- matrix(0,20,20)
for(i in 1:19) for(j in (i+1):20) m[i,j] <- m[j,i] <- rbinom(1,1,.1)
g <- network(m, directed=FALSE)
fit <- lologVariational(g ~ edges() + minDegree(1L))
summary(fit)


## End(Not run)

[Package lolog version 1.3.1 Index]