@@ -137,12 +137,12 @@ function update_jags_file(model::Jagsmodel)
137
137
jagsstr = jagsstr* " load dic\n "
138
138
end
139
139
modelfile = joinpath (model. tmpdir, basename (model. model_file))
140
- jagsstr = jagsstr* " model in $(modelfile) \n "
141
- jagsstr = jagsstr* " data in $(joinpath (model. tmpdir, model. data_file)) \n "
140
+ jagsstr = jagsstr* " model in \" $(modelfile) \" \n"
141
+ jagsstr = jagsstr* " data in \" $(joinpath (model. tmpdir, model. data_file)) \" \n"
142
142
jagsstr = jagsstr* " compile, nchains($(model. nchains) )\n "
143
143
for i in 1 : model. nchains
144
144
fname = " $(model. name) -inits$(i) .R"
145
- jagsstr = jagsstr* " parameters in $(joinpath (model. tmpdir, fname)) , chain($(i) )\n "
145
+ jagsstr = jagsstr* " parameters in \" $(joinpath (model. tmpdir, fname)) \" , chain($(i) )\n "
146
146
end
147
147
jagsstr = jagsstr* " initialize\n "
148
148
jagsstr = jagsstr* " update $(model. adapt) \n "
@@ -162,7 +162,7 @@ function update_jags_file(model::Jagsmodel)
162
162
end
163
163
end
164
164
jagsstr = jagsstr* " update $(model. nsamples) \n "
165
- jagsstr = jagsstr* " coda *, stem($(joinpath (model. tmpdir, model. name)) -cmd1-)\n "
165
+ jagsstr = jagsstr* " coda *, stem(\" $(joinpath (model. tmpdir, model. name)) -cmd1-\" )\n "
166
166
jagsstr = jagsstr* " exit\n "
167
167
check_jags_file (joinpath (model. tmpdir, " $(model. name) -cmd1.jags" ), jagsstr)
168
168
end
@@ -177,12 +177,12 @@ function update_jags_file(model::Jagsmodel, cmd::Int)
177
177
if model. deviance || model. dic || model. popt
178
178
jagsstr = jagsstr* " load dic\n "
179
179
end
180
- jagsstr = jagsstr* " model in " * joinpath (model. tmpdir, basename (model. model_file)) * " \n "
181
- jagsstr = jagsstr* " data in $(joinpath (model. tmpdir, model. data_file)) \n "
180
+ jagsstr = jagsstr* " model in \" " * joinpath (model. tmpdir, basename (model. model_file)) * " \ "\n"
181
+ jagsstr = jagsstr* " data in \" $(joinpath (model. tmpdir, model. data_file)) \" \n"
182
182
jagsstr = jagsstr* " compile, nchains($(model. nchains) )\n "
183
183
for i in 1 : model. nchains
184
184
fname = joinpath (model. tmpdir, " $(model. name) -inits$(indx[i]) .R" )
185
- jagsstr = jagsstr* " parameters in $(fname) , chain($(i) )\n "
185
+ jagsstr = jagsstr* " parameters in \" $(fname) \" , chain($(i) )\n "
186
186
end
187
187
jagsstr = jagsstr* " initialize\n "
188
188
jagsstr = jagsstr* " update $(model. adapt) \n "
@@ -202,7 +202,7 @@ function update_jags_file(model::Jagsmodel, cmd::Int)
202
202
end
203
203
end
204
204
jagsstr = jagsstr* " update $(model. nsamples) \n "
205
- jagsstr = jagsstr* " coda *, stem($(joinpath (model. tmpdir, model. name)) -cmd$(cmd) -)\n "
205
+ jagsstr = jagsstr* " coda *, stem(\" $(joinpath (model. tmpdir, model. name)) -cmd$(cmd) -\" )\n "
206
206
jagsstr = jagsstr* " exit\n "
207
207
check_jags_file (joinpath (model. tmpdir, " $(model. name) -cmd$(cmd) .jags" ), jagsstr)
208
208
end
0 commit comments