Tom,

No preferred Linux distribution and indeed we have users on the dev list and 
user list from several different ones.

That said, I'm certain that such a command can be written for Windows, so don't 
switch just for that :). I just do not know how to write it on Windows. The 
main idea would be to use R to read the data.table and generate the LaTeX 
(e.g., using the xtable package or one of the many other packages to export 
LaTeX) and to then call the tex2lyx program that ships with LyX that imports 
LaTeX into LyX.

Best,
Scott


On Wed, Jan 13, 2021 at 05:15:21PM +0000, Thomas Philips wrote:
> Scott,
> Thanks for the gracious and generous offer,  but unfortunately we are on 
> Windows,  not Linux. Out of curiosity,  is there a preferred Linux 
> distribution for Lyx?
> 
> 
> Tom
> 
> Get Outlook for Android<https://aka.ms/ghei36>
> 
> ________________________________
> From: Scott Kostyshak <skost...@lyx.org>
> Sent: Wednesday, January 13, 2021, 11:57 AM
> To: Jean-Marc Lasgouttes
> Cc: lyx-devel@lists.lyx.org; Doug Martin; Thomas Philips
> Subject: Re: Feature Request from Doug Martin and Tom Philips
> 
> On Wed, Jan 13, 2021 at 10:50:49AM +0100, Jean-Marc Lasgouttes wrote:
> > Le 13/01/2021 à 00:04, Doug Martin a écrit :
> > > Tom and I are using various R packages for the book Portfolio
> > > Construction and Risk Management that we are writing
> > > using LYX.  A LYX feature that would help us in that effort a lot would
> > > be the ability to import R data framesm and data.table
> > > objects created using the excellent data.table package. Given the
> > > thousands of R packages, and the popularity of the
> > > data.table package, we guess that this import feature for LYX would
> > > benefit a lot of people who use both R and LYX.
> >
> > Hi Doug,
> >
> > Did you consider using knitr or Sweave? They allow to insert raw R code in
> > your document. I use that a lot and it is great.
> 
> I also find knitr to be very helpful with tables.
> 
> By the way, if you happen to be on Linux, I can write a simple command for 
> you that does the conversion from a data.table to a .lyx file that has a 
> table. I know you're proposing a feature that will benefit all LyX users, but 
> I offer this nonetheless.
> 
> Scott
> 

Attachment: signature.asc
Description: PGP signature

-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel

Reply via email to