From gmbecker at ucdavis.edu  Tue Jun  2 22:31:55 2015
From: gmbecker at ucdavis.edu (Gabriel Becker)
Date: Tue, 2 Jun 2015 13:31:55 -0700
Subject: [Rd] NEWS.md support on CRAN
In-Reply-To: <CABFfbXvzjp64N9AcbaTsQXBqJwxyahf_dapb=NDuUBkefW3yGA@mail.gmail.com>
References: <4819669E-8260-47B0-96BF-DC2B29E6BE21@me.com>
	<555FD2FE.8050600@gmail.com>
	<21856.13500.513608.759602@fangorn.hornik.net>
	<B98D36A9-901A-4413-88C0-22D7E923612E@me.com>
	<581D2C19-ED47-4D1D-8FC7-C4B4F368E637@gmail.com>
	<21868.18877.410651.592015@fangorn.hornik.net>
	<21869.50739.349239.728644@max.nulle.part>
	<556DCADA.7060109@gmail.com>
	<21869.52962.920249.392569@max.nulle.part>
	<556DF916.60703@gmail.com>
	<CABFfbXvzjp64N9AcbaTsQXBqJwxyahf_dapb=NDuUBkefW3yGA@mail.gmail.com>
Message-ID: <CADwqtCOJ07xgiCTTzdK0Rng7Lbi=_de0Dzu5yshCkUP13kuvzQ@mail.gmail.com>

On Tue, Jun 2, 2015 at 12:40 PM, Jeroen Ooms <jeroenooms at gmail.com> wrote:

> On Tue, Jun 2, 2015 at 8:42 PM, Duncan Murdoch <murdoch.duncan at gmail.com>
> wrote:
> > Several of us have been talking about this, and have more or less
> decided against pandoc for the within-R version.  It is too hard to build,
> or to include with R, on weird platforms. Something like commonmark is more
> likely. We'd also like to separate the parse and render steps.
>
> The commonmark::markdown_xml function gives the parse tree in xml
> format. From there we could use something like xpath to query the
> content for individual news items and such. I think this is a more
> practical way of exposing the syntax tree than deeply nested lists or
> an external pointer to the internal C handle.
>

I don't think it should matter what the internal representation is here. So
long as there is proper tooling (query methods, [ and [[, names, etc)
around whatever class is returned, the user won't ever even know.

XPath is certainly a good way to implement those things, but I don't know
if we'd want it to be the actual abstraction users/developers use to
interact with the tree. Thinking about the right way to consume ASTs
represented by R objects (and how those objects should be
structured/implemented) could have applications well beyond markdown as
well, some of which may not have a canonical/direct XML representation.

~G



>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>



-- 
Gabriel Becker, PhD
Computational Biologist
Bioinformatics and Computational Biology
Genentech, Inc.

	[[alternative HTML version deleted]]



[Rd] NEWS.md support on CRAN
Gabriel Becker