Running examples in ‘BNSP-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: mvrm
> ### Title: Bayesian models for normally distributed responses and
> ###   semiparametric mean and variance regression models
> ### Aliases: mvrm
> ### Keywords: nonparametric regression smooth
> 
> ### ** Examples
> 
> # Fit a mean/variance regression model on the cps71 dataset from package np
> require(np)
Loading required package: np
Nonparametric Kernel Methods for Mixed Datatypes (version 0.60-3)
[vignette("np_faq",package="np") provides answers to frequently asked questions]
[vignette("np",package="np") an overview]
[vignette("entropy_np",package="np") an overview of entropy-based methods]
> require(ggplot2)
Loading required package: ggplot2
> data(cps71)
> meanModel<-logwage~sm(age,nknots=30,bs="rd")
> varianceModel<-~sm(age,nknots=30,bs="rd")
> DIR<-getwd()
> m1<-mvrm(formula=meanModel,formula.v=varianceModel,data=cps71,sweeps=10,burn=5,thin=1,
+          seed=1,StorageDir=DIR)

 *** caught segfault ***
address 0x7f2f163b4970, cause 'invalid permissions'

Traceback:
 1: .C("mvrmC", as.integer(seed), as.character(StorageDir), as.integer(WF),     as.integer(sweeps), as.integer(burn), as.integer(thin), as.double(Y),     as.double(as.matrix(X)), as.double(as.matrix(Z)), as.integer(n),     as.integer(LG), as.integer(LD), as.double(blockSizeProbG),     as.integer(maxBSG), as.double(blockSizeProbD), as.integer(maxBSD),     as.double(f), as.double(g), as.double(h), as.integer(NG),     as.integer(ND), as.integer(vecLG), as.integer(vecLD), as.integer(cusumVecLG),     as.integer(cusumVecLD), as.integer(MVLD), as.double(cetaParams),     as.double(calphaParams), as.double(pimu), as.double(pisigma),     as.integer(HN), as.double(sigmaParams))
 2: mvrm(formula = meanModel, formula.v = varianceModel, data = cps71,     sweeps = 10, burn = 5, thin = 1, seed = 1, StorageDir = DIR)
An irrecoverable exception occurred. R is aborting now ...
Segmentation fault