Error in if (x == 1) return("\\footnotesize{$1$}") :
argument is of length zero
search is returned by autosearch.
the same error with the return value of heuristic.
pic/scoretable.tex:
----------------------------------------------------------------
%% generated automatically Tue Mar 21 14:05:50 2006 - Don't edit by hand
%% A master file:
%% documentclass{article}
%% usepackage{array,pictex}
%% egin{document}
%% input{scoretable}
%% end{document}
\begin{tabular}{|m{2.4cm}|m{2.4cm}|m{2.4cm}|m{2.4cm}|m{2.4cm}|}\hline
\vspace{-0.9cm}\begin{minipage}[t]{2.4cm}
\input{pic1.tex}
\vspace{-1.8cm}\footnotesize{$ 380.0 $}\\
\footnotesize{$1$}
\end{minipage}
&
----------------------------------------------------------------
note "^H" instead of "b" above.
other questions:
--- is there a way to _prescribe_ arrows (the inverse of banlist)?
I do not want to use the gui (drawnetwork), I want something more
command-line oriented.
--- how do I print a network to the printer?
all I can see now is plot() + print screen.
Thanks!
* Sam Steingold <fqf at cbqiny.bet> [2006-03-21 14:13:37 -0500]:
I get this:
genlatex(search)
Error in if (x == 1) return("\\footnotesize{$1$}") :
argument is of length zero
also,
genpicfile(search)
Generating pic-files...Error in plot.window(xlim, ylim, log, asp, ...) :
need finite 'xlim' values
In addition: Warning messages:
1: 'pic' already exists
2: NAs introduced by coercion
3: no finite arguments to min; returning Inf
4: no finite arguments to max; returning -Inf
5: parameter "cexscale" could not be set in high-level plot() function
6: parameter "arrowlength" could not be set in high-level plot() function
7: parameter "notext" could not be set in high-level plot() function
Dear Sam
genlatex needs an object of class "networklist" as input, which will then be arranged nicely in a table in latex code, where the networks are stored in pictex format. You are inputting a single network, which is not handled by genlatex.
The search (heuristic/auto) also returns a table of strings representing all the networks that have been "visited" in the search. The function 'makenw' can take this table and re-create the networks as a networklist, which can then be sorted (according to score) and used as input to genlatex/genpicfile.
You probably want to do something along the lines:
library(deal)
data(ksl)
ksl.nw <- network(ksl)
ksl.prior <- jointprior(ksl.nw,64)
mybanlist <- matrix(c(5,5,6,6,7,7,9,
8,9,8,9,8,9,8),ncol=2)
banlist(ksl.nw) <- mybanlist
ksl.nw <- getnetwork(learn(ksl.nw,ksl,ksl.prior))
ksl.search <- autosearch(ksl.nw,ksl,ksl.prior,
trace=TRUE)
ksl.searchlist <- makenw(ksl.search$table,ksl.search$nw)
ksl.searchlist <- nwfsort(ksl.searchlist)
genpicfile(ksl.searchlist)
genlatex(ksl.searchlist)
- There is no way to 'glue' arrows into the network (opposite of 'ban').
- To print networks, consider using the R devices pdf() or postscript() which will created files with the networks displayed in the graphics window. The files can then be printed.
Best,
Claus
________________________________
Claus Dethlefsen, Msc, PhD
Statistiker ved Kardiovaskul?rt Forskningscenter
Forskningens Hus
Aalborg Sygehus
Sdr. Skovvej 15
9000 Aalborg
Tlf: 9932 6863
email: aas.claus.dethlefsen at nja.dk <mailto:aas.claus.dethlefsen at nja.dk>
________________________________
Fra: r-sig-gr-bounces at stat.math.ethz.ch p? vegne af Sam Steingold
Sendt: ti 21-03-2006 20:13
Til: r-sig-gr at stat.math.ethz.ch
Emne: [R--gR] deal: genlatex fails
I get this:
genlatex(search)
Error in if (x == 1) return("\\footnotesize{$1$}") :
argument is of length zero
search is returned by autosearch.
the same error with the return value of heuristic.
pic/scoretable.tex:
----------------------------------------------------------------
%% generated automatically Tue Mar 21 14:05:50 2006 - Don't edit by hand
%% A master file:
%% documentclass{article}
%% usepackage{array,pictex}
%% egin{document}
%% input{scoretable}
%% end{document}
\begin{tabular}{|m{2.4cm}|m{2.4cm}|m{2.4cm}|m{2.4cm}|m{2.4cm}|}\hline
\vspace{-0.9cm}\begin{minipage}[t]{2.4cm}
\input{pic1.tex}
\vspace{-1.8cm}\footnotesize{$ 380.0 $}\\
\footnotesize{$1$}
\end{minipage}
&
----------------------------------------------------------------
note "^H" instead of "b" above.
other questions:
--- is there a way to _prescribe_ arrows (the inverse of banlist)?
I do not want to use the gui (drawnetwork), I want something more
command-line oriented.
--- how do I print a network to the printer?
all I can see now is plot() + print screen.
Thanks!
--
Sam Steingold (http://www.podval.org/~sds) on Fedora Core release 4 (Stentz)
http://www.honestreporting.comhttp://www.openvotingconsortium.orghttp://truepeace.orghttp://www.camera.orghttp://www.jihadwatch.org
Daddy, what does "format disk c: complete" mean?
_______________________________________________
R-sig-gR mailing list
R-sig-gR at stat.math.ethz.ch
https://stat.ethz.ch/mailman/listinfo/r-sig-gr
genlatex needs an object of class "networklist" as input, which will
then be arranged nicely in a table in latex code, where the networks
are stored in pictex format. You are inputting a single network, which
is not handled by genlatex.
yes, it works, thanks!
it would be nice if a master.tex file were also generated that included
the table, nice and all the other networks too - for easy viewing.
- There is no way to 'glue' arrows into the network (opposite of 'ban').
please consider this feature to have been requested.
pic/scoretable.tex:
----------------------------------------------------------------
%% generated automatically Tue Mar 21 14:05:50 2006 - Don't edit by hand
%% A master file:
%% documentclass{article}
%% usepackage{array,pictex}
%% egin{document}
%% input{scoretable}
%% end{document}
\begin{tabular}{|m{2.4cm}|m{2.4cm}|m{2.4cm}|m{2.4cm}|m{2.4cm}|}\hline
\vspace{-0.9cm}\begin{minipage}[t]{2.4cm}
\input{pic1.tex}
\vspace{-1.8cm}\footnotesize{$ 380.0 $}\\
\footnotesize{$1$}
\end{minipage}
&
----------------------------------------------------------------
this is probably due to a spurious backslash in a literal string:
"\begin" == "^Hegin".
* Sam Steingold <fqf at cbqiny.bet> [2006-03-27 11:27:59 -0500]:
it would be nice if a master.tex file were also generated that included
the table, nice and all the other networks too - for easy viewing.
oops - I did not notice that scoretable.tex actually does contain the list.
unfortunately, I get the dreaded "TeX capacity exceeded" error:
(./pic28.tex)
Overfull \hbox (47.34357pt too wide) in paragraph at lines 171--176
[]|[]|
(./pic29.tex)
Overfull \hbox (47.34357pt too wide) in paragraph at lines 177--182
[]|[]|
(./pic30.tex)
Overfull \hbox (47.34357pt too wide) in paragraph at lines 183--188
[]|[]|
(./pic31.tex)
Overfull \hbox (47.34357pt too wide) in paragraph at lines 189--194
[]|[]|
(./pic32.tex)
Overfull \hbox (47.34357pt too wide) in paragraph at lines 195--200
[]|[]|
(./pic33.tex
! TeX capacity exceeded, sorry [main memory size=1000000].
\!plot ...menA \raise \!dimenB \copy \!plotsymbol
\kern -\!dimenA \ignorespa...
l.35 \plot 67.79 84.12 43.31 76.41
/
No pages of output.
Transcript written on master.log.
--
Sam Steingold (http://www.podval.org/~sds) on Fedora Core release 4 (Stentz)
http://www.memri.orghttp://www.savegushkatif.orghttp://ffii.orghttp://pmw.org.ilhttp://truepeace.orghttp://www.mideasttruth.com
There are 3 kinds of people: those who can count and those who cannot.
* Sam Steingold <fqf at cbqiny.bet> [2006-03-27 12:06:58 -0500]:
* Sam Steingold <fqf at cbqiny.bet> [2006-03-27 11:27:59 -0500]:
it would be nice if a master.tex file were also generated that included
the table, nice and all the other networks too - for easy viewing.
oops - I did not notice that scoretable.tex actually does contain the list.
unfortunately, I get the dreaded "TeX capacity exceeded" error:
(./pic28.tex)
Overfull \hbox (47.34357pt too wide) in paragraph at lines 171--176
[]|[]|
(./pic29.tex)
Overfull \hbox (47.34357pt too wide) in paragraph at lines 177--182
[]|[]|
(./pic30.tex)
Overfull \hbox (47.34357pt too wide) in paragraph at lines 183--188
[]|[]|
(./pic31.tex)
Overfull \hbox (47.34357pt too wide) in paragraph at lines 189--194
[]|[]|
(./pic32.tex)
Overfull \hbox (47.34357pt too wide) in paragraph at lines 195--200
[]|[]|
(./pic33.tex
! TeX capacity exceeded, sorry [main memory size=1000000].
\!plot ...menA \raise \!dimenB \copy \!plotsymbol
\kern -\!dimenA \ignorespa...
l.35 \plot 67.79 84.12 43.31 76.41
/
No pages of output.
Transcript written on master.log.
and when I trim the list of "pic" files, I get this further error:
(./pic30.tex)
Overfull \hbox (47.34357pt too wide) in paragraph at lines 183--188
[]|[]|
Overfull \hbox (45.83215pt too wide) in paragraph at lines 8--189
[][]
[1]) (./picnice.tex
! Missing $ inserted.
<inserted text>
$
l.15 ...ate} [lB] <0.00pt,0.00pt> at 174.63 83.31
! Extra }, or forgotten $.
\!setputobject ...>\setbox \!putobject =\hbox {#1}
\!ht =\ht \!putobject \!dp...
l.15 ...ate} [lB] <0.00pt,0.00pt> at 174.63 83.31
! Missing $ inserted.
<inserted text>
$
l.17 ...te} [lB] <0.00pt,0.00pt> at 242.09 158.45
! Extra }, or forgotten $.
\!setputobject ...>\setbox \!putobject =\hbox {#1}
\!ht =\ht \!putobject \!dp...
l.17 ...te} [lB] <0.00pt,0.00pt> at 242.09 158.45
! Extra }, or forgotten $.
\endpicture ...bot \global \!Ytop =\!ytop \egroup
\ht \!picbox =\!Ytop \dp \...
l.157 \endpicture
! Extra }, or forgotten $.
l.158 }
)
! Missing $ inserted.
<inserted text>
$
l.7 \end{document}
! Missing } inserted.
<inserted text>
}
l.7 \end{document}
! Missing $ inserted.
<inserted text>
$
l.7 \end{document}
! Missing } inserted.
<inserted text>
}
l.7 \end{document}
! Missing } inserted.
<inserted text>
}
l.7 \end{document}
! Missing } inserted.
<inserted text>
}
l.7 \end{document}
! Missing $ inserted.
<inserted text>
$
l.7 \end{document}
! Display math should end with $$.
<to be read again>
\vfil
l.7 \end{document}
[2] (./master.aux) )
(see the transcript file for additional information)
Output written on master.dvi (2 pages, 710520 bytes).
Transcript written on master.log.