Open ramiromagno opened 2 years ago
Yes, it generates this:
\examples{
\dontshow{if () (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
# Open in PGS scores Catalog Web Graphical User Interface
open_in_pgs_catalog(c('PGS000001', 'PGS000002'))
...
open_in_pgs_catalog(c('EFO_0001645', 'MONDO_0007254'),
pgs_catalog_entity = 'efo')
\dontshow{\}) # examplesIf}
}
and \dontshow{}
will insert an empty line, and it probably should not.
We can change it to generate this:
\examples{
\dontshow{if () (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}# Open in PGS scores Catalog Web Graphical User Interface
open_in_pgs_catalog(c('PGS000001', 'PGS000002'))
...
open_in_pgs_catalog(c('EFO_0001645', 'MONDO_0007254'),
pgs_catalog_entity = 'efo')\dontshow{\}) # examplesIf}
}
I didn't do that in case the \dontshow{}
behavior should change in the future, and then we might generate syntactically invalid code. But I guess we will notice that anyway, so I don't mind changing it.
results in: