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

> ### Name: StartNewsamples
> ### Title: Initialize New Samples
> ### Aliases: StartNewsamples RestartSamples StartManynewsamples
> ###   RestartManysamples StartNewHypersamples RestartHypersamples
> 
> ### ** Examples
> 
> m1 <- BuildModel(
+     p.map     = list(a = "1", v = "F", z = "1", d = "1", sz = "1", sv = "1",
+                 t0 = "1", st0 = "1"),
+     constants = c(st0 = 0, d = 0),
+     match.map = list(M = list(s1 = "r1", s2 = "r2")),
+     factors   = list(S = c("s1","s2"), F = c("f1", "f2")),
+     responses = c("r1","r2"),
+     type      = "rd")

Parameter vector names (unordered) are: ( see attr(,"p.vector") )
[1] "a"    "v.f1" "v.f2" "z"    "sz"   "sv"   "t0"  

Constants are (see attr(,"constants") ):
st0   d 
  0   0 

Model type = rd 

> 
> ## m1 is "model" class
> class(m1)
[1] "model"
> ## [1] "model"
> 
> pVec <- c(a = 1, v.f1 = 1, v.f2 = 1.5, z = .5, sz = .25, sv = .2, t0 = .15)
> dat  <- simulate(m1, nsim = 1e2, ps = pVec)
> str(dat)
'data.frame':	400 obs. of  4 variables:
 $ S : Factor w/ 2 levels "s1","s2": 1 1 1 1 1 1 1 1 1 1 ...
 $ F : Factor w/ 2 levels "f1","f2": 1 1 1 1 1 1 1 1 1 1 ...
 $ R : Factor w/ 2 levels "r1","r2": 1 1 1 2 2 1 1 1 1 1 ...
 $ RT: num  0.549 0.375 0.235 0.18 0.225 ...
 - attr(*, "parameters")= Named num  1 1 1.5 0.5 0.25 0.2 0.15
  ..- attr(*, "names")= chr  "a" "v.f1" "v.f2" "z" ...
> ## 'data.frame':	400 obs. of  4 variables:
> ## $ S : Factor w/ 2 levels "s1","s2": 1 1 1 1 1 1 1 1 1 1 ...
> ## $ F : Factor w/ 2 levels "f1","f2": 1 1 1 1 1 1 1 1 1 1 ...
> ## $ R : Factor w/ 2 levels "r1","r2": 1 1 1 2 1 1 1 1 2 1 ...
> ## $ RT: num  0.26 0.255 0.572 0.25 0.518 ...
> 
> dmi1 <- BuildDMI(dat, m1)
> npar <- length(GetPNames(m1))
> 
> p.prior <- BuildPrior(
+    dists = rep("tnorm", npar),
+    p1    = c(a=2,  v.f1=2.5, v.f2=1.25, z=.5, sz=.3, sv=1,  t0=.3),
+    p2    = c(a=.5, v.f1=.5,  v.f2=.35,  z=.1, sz=.1, sv=.3, t0=.05),
+    lower = c(0,-5, -5, 0, 0, 0, 0),
+    upper = c(5, 7,  7, 2, 2, 2, 2))
> 
> ## Set up a new DMC sample with 16 iteration. The default thin is 1
> sam0 <- StartNewsamples(nmc = 16, data = dmi1, prior = p.prior)
OMP: Error #15: Initializing libomp.dylib, but found libomp.dylib already initialized.
OMP: Hint: This means that multiple copies of the OpenMP runtime have been linked into the program. That is dangerous, since it can degrade performance or cause incorrect results. The best thing to do is to ensure that only a single OpenMP runtime is linked into the process, e.g. by avoiding static linking of the OpenMP runtime in any library. As an unsafe, unsupported, undocumented workaround you can set the environment variable KMP_DUPLICATE_LIB_OK=TRUE to allow the program to continue to execute, but that may cause crashes or silently produce incorrect results. For more information, please see http://www.intel.com/software/products/support/.