From 12d1476b15d7511cd548d1d5a48bf5cba4657bcf Mon Sep 17 00:00:00 2001 From: "Pavel N. Krivitsky" Date: Fri, 30 Sep 2022 16:03:48 +1000 Subject: [PATCH] HTML term index table now creates one id= per cell rather than per term, fixing an HTML tidy warning. --- DESCRIPTION | 4 ++-- R/ergm-terms-index.R | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index ea8c793cc..6e2835451 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: ergm -Version: 4.3-7009 -Date: 2022-09-10 +Version: 4.3-7049 +Date: 2022-09-30 Title: Fit, Simulate and Diagnose Exponential-Family Models for Networks Authors@R: c( person("Mark S.", "Handcock", role=c("aut"), email="handcock@stat.ucla.edu"), diff --git a/R/ergm-terms-index.R b/R/ergm-terms-index.R index e2f6aba18..6ad2cc74a 100644 --- a/R/ergm-terms-index.R +++ b/R/ergm-terms-index.R @@ -518,7 +518,10 @@ PROPOSAL_NOT_IN_TABLE <- "This proposal is not referenced in the lookup table." # \link[=absdiff-ergmTerm]{test} and check that it works with \out{test}. # This address may change from an upstream R-studio change - df$Term <- sprintf(gsub('`([^`(]*)([^`]*)`', '\\1\\2', .fsub(df$Term, '\n', '
\n')), df$Link) + df$Term %<>% .fsub('\n', '
\n') %>% + gsub('`([^`(]*)([^`]*)`', '\\1\\2', .) %>% + sprintf(df$Link) %>% + sprintf('
%s
', df$Link, .) df$Link <- NULL css <- ''