Displaying 1 result from an estimated 1 matches for "f1kw".
Did you mean:
f1k
2006 Jul 01
1
Rdconv --type=Ssgm drops singleton keywords (PR#9051)
...-keyword>~kwd2</s-keyword>
</s-keywords>
%
That is good.
If you remove one keyword entry from the Rd file so it has one left
then the sgm file has no <s-keyword> entries (and no <s-keywords>
section):
% grep -v '~kwd2' < f.Rd > f1kw.Rd
% grep keyword f1kw.Rd
\keyword{ ~kwd1 }% at least one, from doc/KEYWORDS
% R CMD Rdconv --type=Ssgm f1kw.Rd | grep s-keyword
%
The fix:
The problem is that the line
if ($#keywords > 0) {
should use >= 0 to tell if the list @keywords is non-empty.
***...