lologPackageSkeleton: Create a skeleton for a package extending lolog

Description Usage Arguments Details See Also Examples

View source: R/util.R

Description

Create a skeleton for a package extending lolog

Usage

1

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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
## 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)

lolog documentation built on July 1, 2021, 9:09 a.m.