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

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: mtc.data.studyrow
> ### Title: Convert one-study-per-row datasets
> ### Aliases: mtc.data.studyrow
> 
> ### ** Examples
> 
> ## Example taken from the NICE DSU TSD series in Evidence Synthesis, #2
> ## Dopamine agonists for the treatment of Parkinson's
> 
> # Read the bugs-formatted data
> data.src <- read.table(textConnection('
+ t[,1]	t[,2]	t[,3]	y[,1]	y[,2]	y[,3]	se[,1]	se[,2]	se[,3]	na[]
+ 1	3	NA	-1.22	-1.53	NA	0.504	0.439	NA	2
+ 1	2	NA	-0.7	-2.4	NA	0.282	0.258	NA	2
+ 1	2	4	-0.3	-2.6	-1.2	0.505	0.510	0.478	3
+ 3	4	NA	-0.24	-0.59	NA	0.265	0.354	NA	2
+ 3	4	NA	-0.73	-0.18	NA	0.335	0.442	NA	2
+ 4	5	NA	-2.2	-2.5	NA	0.197	0.190	NA	2
+ 4	5	NA	-1.8	-2.1	NA	0.200	0.250	NA	2'), header=TRUE)
> 
> # Convert the data, setting treatment names
> data <- mtc.data.studyrow(data.src,
+   armVars=c('treatment'='t', 'mean'='y', 'std.err'='se'),
+   treatmentNames=c('Placebo', 'DA1', 'DA2', 'DA3', 'DA4'))
> 
> # Check that the data are correct
> print(data)
   study treatment  mean std.err
1      1   Placebo -1.22   0.504
2      1       DA2 -1.53   0.439
3      2   Placebo -0.70   0.282
4      2       DA1 -2.40   0.258
5      3   Placebo -0.30   0.505
6      3       DA1 -2.60   0.510
7      3       DA3 -1.20   0.478
8      4       DA2 -0.24   0.265
9      4       DA3 -0.59   0.354
10     5       DA2 -0.73   0.335
11     5       DA3 -0.18   0.442
12     6       DA3 -2.20   0.197
13     6       DA4 -2.50   0.190
14     7       DA3 -1.80   0.200
15     7       DA4 -2.10   0.250
> 
> # Create a network
> network <- mtc.network(data)
> 
> 
> 
> base::assign(".dptime", (proc.time() - get(".ptime", pos = "CheckExEnv")), pos = "CheckExEnv")
> base::cat("mtc.data.studyrow", base::get(".format_ptime", pos = 'CheckExEnv')(get(".dptime", pos = "CheckExEnv")), "\n", file=base::get(".ExTimings", pos = 'CheckExEnv'), append=TRUE, sep="\t")
> cleanEx()
Error: connections left open:
	"\nt[,1]\tt[,2]\tt[,3]\ty[,1]\ty[,2]\ty[,3]\tse[,1]\tse[,2]\tse[,3]\tna[]\n1\t3\tNA\t-1.22\t-1.53\tNA\t0.504\t0.439\tNA\t2\n1\t2\tNA\t-0.7\t-2.4\tNA\t0.282\t0.258\tNA\t2\n1\t2\t4\t-0.3\t-2.6\t-1.2\t0.505\t0.510\t0.478\t3\n3\t4\tNA\t-0.24\t-0.59\tNA\t0.265\t0.354\tNA\t2\n3\t4\tNA\t-0.73\t-0.18\tNA\t0.335\t0.442\tNA\t2\n4\t5\tNA\t-2.2\t-2.5\tNA\t0.197\t0.190\tNA\t2\n4\t5\tNA\t-1.8\t-2.1\tNA\t0.200\t0.250\tNA\t2" (textConnection)
Execution halted