RE: lyx 2 and sweave
Thanks for your rsponse But if one never runs RTools, how does it do this. In the instructions, it seems as if RTools does not get run; or am I missing something. Also when I downloaded RTools it seems as if this is a tools to re-compile the source code, since a full download also inlcludes a compiler etc. Furthermore, it also seems as if RTools implements Cygwin. All in all very confusing Really appreciate you taking the trouble to try and help Regards Steve -Original Message- From: Liviu Andronic [mailto:landronim...@gmail.com] Sent: 12 June 2011 11:32 PM To: Steve Sidney Cc: myi...@gmail.com; lyx-users@lists.lyx.org Subject: Re: lyx 2 and sweave On Sun, Jun 12, 2011 at 4:02 PM, Steve Sidney ste...@nla.org.za wrote: How does RTools get invoked; I see that it is a very large installation (200Mb) with compiler etc but I can't see where it get used in either Rob's or your description. As far as I know, RTools simply (among other things) properly sets up R in the Windows environment so that LaTeX and LyX can communicate with R. At this step, you shouldn't be doing much more. Are you sure you have reconfigured LyX? Liviu
RE: lyx 2 and sweave
Dear Murat Thanks v much. You will see that Liviu responded and I have tried to ask the questions re RTools a little differently. But, tnaks for trying. My problem definitely revolves around the fact that as soon as try and include the 'Sweave' module is says that it's not installed and my ver of Latex (Miktex) can't see it. I don't really know what's package is missing from MikTex. I am sure that Rob's instructions are fine it's just that as a 'newbie' there seems to be some detail missing and for instance I don't know if I must install the whole RTools (200mB) or not and then I can't see where it gets run. Anyway, thanks for trying - maybe I just go to Linux for the this, since there seems as though there has always been less problems with Sweave in that environment. Regards Steve _ From: myi...@gmail.com [mailto:myi...@gmail.com] On Behalf Of Murat Yildizoglu Sent: 13 June 2011 12:36 PM To: Steve Sidney Cc: lyx-users@lists.lyx.org Subject: Re: lyx 2 and sweave Dear Steve, I have just tried to make more explicit the instructions given by Rob. Unfortunately, I do not use Windows anymore and cannot directly test them. As far as I do remember, establishing the connection with Sweave was rather complex under Windows with the previous versions of Lyx, but it is supposed to be much simpler with Lyx 2. For example, under OSX, the connection was just out-of-the-box for me, after having included the module. For Windows, I do not remember if I had to install RTools, but, anyway, this was before Lyx 2. In your place, I would just follow Rob's instructions, I am pretty confident that if he has published them, they must work. Sorry for not being more helpful. I was hoping that other WIndows users who remember their setup for Lyx2-Sweave connection would ring the bell here. Murat 2011/6/12 Steve Sidney ste...@nla.org.za Dear Murat I sent this last week but see now that it went to your University email - apologies. I am sending this again in case you did not receive it. I have also copied the list I have tried following your instructions - thanks for sending them but I still can't get it to work. How does RTools get invoked; I see that it is a very large installation (200Mb) with compiler etc but I can't see where it get used in either Rob's or your description. Once again thanks for all your help it is much appreciated. Regards Steve _ From: myi...@gmail.com [mailto:myi...@gmail.com] On Behalf Of Murat Yildizoglu Sent: 02 June 2011 04:45 PM To: Steve Sidney Subject: Re: lyx 2 and sweave Dear Steve, If I try to make a little bit more explicit these instructions by Rob: Heres the process: 1. Install LyX. Use alpha6 (available from the LyX website), its the most stable. 2. Install R. Available from its projects website. 3. Install the appropriate RTools http://www.murdoch-sutherland.com/Rtools/index.html for your version of R. 4. Copy Sweave.sty from share/texmf in the R installation directory to some place in your LaTeX path. 5. Rebuild your LaTeX database. Reconfigure LyX. 1. You just install the most recent version of Lyx. 2. and 3. Check your version of R. Launch R and check the About box. Use this information to download the correct RTools version from the wab page indicated by Rob. 4. R is normally installed in Program Files\R-project if I remember well. Locate the subfolder share under the folder of R-project (using the file manager of WIndows), and then the folder subfolder texmf that should be in the share folder. Copy this folder in your Miktex tree. MikTex should normally be installed in Proram Files\Miktex and must contain a sunfolder texmf that again contains a subfolder latex. Put the the content of the share\texmf folder in a subfolder of this latex folder (you can create a new folder called sweave for example and copy the files in this new folder). 5. You have two choices here: The user-friendly one is to locate the MikTex manager program from your Programs/Miktex menu and refresh the Latex file index from here (one of the tabs must be about such a functionality). The more direct one uses the Command line window (You should be able to open one from Start/Programs/Accessories/Command... In this window just execute the following command: mktexlsr (type mktexlsr and push the Return key). This will read some folders and update their indexes for allowing to Latex compiler to find the corresponding files. Then Launch Lyx and Execute Reconfigure (please look in the menus, I do not remember under which menu this function appears in the Window version). I have written the paths to the relevant folders from memory, and I am not sure to remember well since I do not use Windows anymore. I also translate from French Windows. But if you look for the meaning of what I indicate, you should find your way. Sorry for not being more precise, but I hope that this can help you in the waiting of more
RE: lyx 2 and sweave
Thanks Liviu I feel quite the 'idiot' at this stage, but thanks to both you and Murat for trying. Murat have just seen your last mail - yes it would be great if Rob or someone else familiar with setting it up in Windows could claridy and help. Regards Steve -Original Message- From: Liviu Andronic [mailto:landronim...@gmail.com] Sent: 13 June 2011 12:49 PM To: Steve Sidney Cc: myi...@gmail.com; lyx-users@lists.lyx.org Subject: Re: lyx 2 and sweave On Mon, Jun 13, 2011 at 12:35 PM, Steve Sidney ste...@nla.org.za wrote: Thanks for your rsponse But if one never runs RTools, how does it do this. You should only need to install RTools, this way properly configuring your Win environment for LyX to R communications, but not run it at any point when trying to compile an Sweave document. It was some time ago, but as far as I remember immediately after installing RTools (and after having already registered Sweave.sty with LaTeX) I could to easily compile LyX Sweave documents. To echo Murat, on Linux and Mac it's all much more straightforward, since simply installing LyX and R suffices to make LyX Sweave work. In the instructions, it seems as if RTools does not get run; or am I missing something. Also when I downloaded RTools it seems as if this is a tools to re-compile the source code, since a full download also inlcludes a compiler etc. Furthermore, it also seems as if RTools implements Cygwin. That might be one of the things that allows for the LyX Sweave integration. It might be better for you to tell us what exactly doesn't work on your set-up: LyX compilation errors, etc. Regards Liviu All in all very confusing Really appreciate you taking the trouble to try and help Regards Steve -Original Message- From: Liviu Andronic [mailto:landronim...@gmail.com] Sent: 12 June 2011 11:32 PM To: Steve Sidney Cc: myi...@gmail.com; lyx-users@lists.lyx.org Subject: Re: lyx 2 and sweave On Sun, Jun 12, 2011 at 4:02 PM, Steve Sidney ste...@nla.org.za wrote: How does RTools get invoked; I see that it is a very large installation (200Mb) with compiler etc but I can't see where it get used in either Rob's or your description. As far as I know, RTools simply (among other things) properly sets up R in the Windows environment so that LaTeX and LyX can communicate with R. At this step, you shouldn't be doing much more. Are you sure you have reconfigured LyX? Liviu -- Do you know how to read? http://www.alienetworks.com/srtest.cfm http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader Do you know how to write? http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail
RE: lyx 2 and sweave
Thanks for your rsponse But if one never runs RTools, how does it do this. In the instructions, it seems as if RTools does not get run; or am I missing something. Also when I downloaded RTools it seems as if this is a tools to re-compile the source code, since a full download also inlcludes a compiler etc. Furthermore, it also seems as if RTools implements Cygwin. All in all very confusing Really appreciate you taking the trouble to try and help Regards Steve -Original Message- From: Liviu Andronic [mailto:landronim...@gmail.com] Sent: 12 June 2011 11:32 PM To: Steve Sidney Cc: myi...@gmail.com; lyx-users@lists.lyx.org Subject: Re: lyx 2 and sweave On Sun, Jun 12, 2011 at 4:02 PM, Steve Sidney ste...@nla.org.za wrote: How does RTools get invoked; I see that it is a very large installation (200Mb) with compiler etc but I can't see where it get used in either Rob's or your description. As far as I know, RTools simply (among other things) properly sets up R in the Windows environment so that LaTeX and LyX can communicate with R. At this step, you shouldn't be doing much more. Are you sure you have reconfigured LyX? Liviu
RE: lyx 2 and sweave
Dear Murat Thanks v much. You will see that Liviu responded and I have tried to ask the questions re RTools a little differently. But, tnaks for trying. My problem definitely revolves around the fact that as soon as try and include the 'Sweave' module is says that it's not installed and my ver of Latex (Miktex) can't see it. I don't really know what's package is missing from MikTex. I am sure that Rob's instructions are fine it's just that as a 'newbie' there seems to be some detail missing and for instance I don't know if I must install the whole RTools (200mB) or not and then I can't see where it gets run. Anyway, thanks for trying - maybe I just go to Linux for the this, since there seems as though there has always been less problems with Sweave in that environment. Regards Steve _ From: myi...@gmail.com [mailto:myi...@gmail.com] On Behalf Of Murat Yildizoglu Sent: 13 June 2011 12:36 PM To: Steve Sidney Cc: lyx-users@lists.lyx.org Subject: Re: lyx 2 and sweave Dear Steve, I have just tried to make more explicit the instructions given by Rob. Unfortunately, I do not use Windows anymore and cannot directly test them. As far as I do remember, establishing the connection with Sweave was rather complex under Windows with the previous versions of Lyx, but it is supposed to be much simpler with Lyx 2. For example, under OSX, the connection was just out-of-the-box for me, after having included the module. For Windows, I do not remember if I had to install RTools, but, anyway, this was before Lyx 2. In your place, I would just follow Rob's instructions, I am pretty confident that if he has published them, they must work. Sorry for not being more helpful. I was hoping that other WIndows users who remember their setup for Lyx2-Sweave connection would ring the bell here. Murat 2011/6/12 Steve Sidney ste...@nla.org.za Dear Murat I sent this last week but see now that it went to your University email - apologies. I am sending this again in case you did not receive it. I have also copied the list I have tried following your instructions - thanks for sending them but I still can't get it to work. How does RTools get invoked; I see that it is a very large installation (200Mb) with compiler etc but I can't see where it get used in either Rob's or your description. Once again thanks for all your help it is much appreciated. Regards Steve _ From: myi...@gmail.com [mailto:myi...@gmail.com] On Behalf Of Murat Yildizoglu Sent: 02 June 2011 04:45 PM To: Steve Sidney Subject: Re: lyx 2 and sweave Dear Steve, If I try to make a little bit more explicit these instructions by Rob: Heres the process: 1. Install LyX. Use alpha6 (available from the LyX website), its the most stable. 2. Install R. Available from its projects website. 3. Install the appropriate RTools http://www.murdoch-sutherland.com/Rtools/index.html for your version of R. 4. Copy Sweave.sty from share/texmf in the R installation directory to some place in your LaTeX path. 5. Rebuild your LaTeX database. Reconfigure LyX. 1. You just install the most recent version of Lyx. 2. and 3. Check your version of R. Launch R and check the About box. Use this information to download the correct RTools version from the wab page indicated by Rob. 4. R is normally installed in Program Files\R-project if I remember well. Locate the subfolder share under the folder of R-project (using the file manager of WIndows), and then the folder subfolder texmf that should be in the share folder. Copy this folder in your Miktex tree. MikTex should normally be installed in Proram Files\Miktex and must contain a sunfolder texmf that again contains a subfolder latex. Put the the content of the share\texmf folder in a subfolder of this latex folder (you can create a new folder called sweave for example and copy the files in this new folder). 5. You have two choices here: The user-friendly one is to locate the MikTex manager program from your Programs/Miktex menu and refresh the Latex file index from here (one of the tabs must be about such a functionality). The more direct one uses the Command line window (You should be able to open one from Start/Programs/Accessories/Command... In this window just execute the following command: mktexlsr (type mktexlsr and push the Return key). This will read some folders and update their indexes for allowing to Latex compiler to find the corresponding files. Then Launch Lyx and Execute Reconfigure (please look in the menus, I do not remember under which menu this function appears in the Window version). I have written the paths to the relevant folders from memory, and I am not sure to remember well since I do not use Windows anymore. I also translate from French Windows. But if you look for the meaning of what I indicate, you should find your way. Sorry for not being more precise, but I hope that this can help you in the waiting of more
RE: lyx 2 and sweave
Thanks Liviu I feel quite the 'idiot' at this stage, but thanks to both you and Murat for trying. Murat have just seen your last mail - yes it would be great if Rob or someone else familiar with setting it up in Windows could claridy and help. Regards Steve -Original Message- From: Liviu Andronic [mailto:landronim...@gmail.com] Sent: 13 June 2011 12:49 PM To: Steve Sidney Cc: myi...@gmail.com; lyx-users@lists.lyx.org Subject: Re: lyx 2 and sweave On Mon, Jun 13, 2011 at 12:35 PM, Steve Sidney ste...@nla.org.za wrote: Thanks for your rsponse But if one never runs RTools, how does it do this. You should only need to install RTools, this way properly configuring your Win environment for LyX to R communications, but not run it at any point when trying to compile an Sweave document. It was some time ago, but as far as I remember immediately after installing RTools (and after having already registered Sweave.sty with LaTeX) I could to easily compile LyX Sweave documents. To echo Murat, on Linux and Mac it's all much more straightforward, since simply installing LyX and R suffices to make LyX Sweave work. In the instructions, it seems as if RTools does not get run; or am I missing something. Also when I downloaded RTools it seems as if this is a tools to re-compile the source code, since a full download also inlcludes a compiler etc. Furthermore, it also seems as if RTools implements Cygwin. That might be one of the things that allows for the LyX Sweave integration. It might be better for you to tell us what exactly doesn't work on your set-up: LyX compilation errors, etc. Regards Liviu All in all very confusing Really appreciate you taking the trouble to try and help Regards Steve -Original Message- From: Liviu Andronic [mailto:landronim...@gmail.com] Sent: 12 June 2011 11:32 PM To: Steve Sidney Cc: myi...@gmail.com; lyx-users@lists.lyx.org Subject: Re: lyx 2 and sweave On Sun, Jun 12, 2011 at 4:02 PM, Steve Sidney ste...@nla.org.za wrote: How does RTools get invoked; I see that it is a very large installation (200Mb) with compiler etc but I can't see where it get used in either Rob's or your description. As far as I know, RTools simply (among other things) properly sets up R in the Windows environment so that LaTeX and LyX can communicate with R. At this step, you shouldn't be doing much more. Are you sure you have reconfigured LyX? Liviu -- Do you know how to read? http://www.alienetworks.com/srtest.cfm http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader Do you know how to write? http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail
RE: lyx 2 and sweave
Thanks for your rsponse But if one never runs RTools, how does it do this. In the instructions, it seems as if RTools does not get run; or am I missing something. Also when I downloaded RTools it seems as if this is a tools to re-compile the source code, since a full download also inlcludes a compiler etc. Furthermore, it also seems as if RTools implements Cygwin. All in all very confusing Really appreciate you taking the trouble to try and help Regards Steve -Original Message- From: Liviu Andronic [mailto:landronim...@gmail.com] Sent: 12 June 2011 11:32 PM To: Steve Sidney Cc: myi...@gmail.com; lyx-users@lists.lyx.org Subject: Re: lyx 2 and sweave On Sun, Jun 12, 2011 at 4:02 PM, Steve Sidney <ste...@nla.org.za> wrote: > How does RTools get invoked; I see that it is a very large > installation > (200Mb) with compiler etc but I can't see where it get used in either > Rob's or your description. > As far as I know, RTools simply (among other things) properly sets up R in the Windows environment so that LaTeX and LyX can communicate with R. At this step, you shouldn't be doing much more. Are you sure you have reconfigured LyX? Liviu
RE: lyx 2 and sweave
Dear Murat Thanks v much. You will see that Liviu responded and I have tried to ask the questions re RTools a little differently. But, tnaks for trying. My problem definitely revolves around the fact that as soon as try and include the 'Sweave' module is says that it's not installed and my ver of Latex (Miktex) can't see it. I don't really know what's package is missing from MikTex. I am sure that Rob's instructions are fine it's just that as a 'newbie' there seems to be some detail missing and for instance I don't know if I must install the whole RTools (200mB) or not and then I can't see where it gets run. Anyway, thanks for trying - maybe I just go to Linux for the this, since there seems as though there has always been less problems with Sweave in that environment. Regards Steve _ From: myi...@gmail.com [mailto:myi...@gmail.com] On Behalf Of Murat Yildizoglu Sent: 13 June 2011 12:36 PM To: Steve Sidney Cc: lyx-users@lists.lyx.org Subject: Re: lyx 2 and sweave Dear Steve, I have just tried to make more explicit the instructions given by Rob. Unfortunately, I do not use Windows anymore and cannot directly test them. As far as I do remember, establishing the connection with Sweave was rather complex under Windows with the previous versions of Lyx, but it is supposed to be much simpler with Lyx 2. For example, under OSX, the connection was just out-of-the-box for me, after having included the module. For Windows, I do not remember if I had to install RTools, but, anyway, this was before Lyx 2. In your place, I would just follow Rob's instructions, I am pretty confident that if he has published them, they must work. Sorry for not being more helpful. I was hoping that other WIndows users who remember their setup for Lyx2-Sweave connection would ring the bell here. Murat 2011/6/12 Steve Sidney <ste...@nla.org.za> Dear Murat I sent this last week but see now that it went to your University email - apologies. I am sending this again in case you did not receive it. I have also copied the list I have tried following your instructions - thanks for sending them but I still can't get it to work. How does RTools get invoked; I see that it is a very large installation (200Mb) with compiler etc but I can't see where it get used in either Rob's or your description. Once again thanks for all your help it is much appreciated. Regards Steve _ From: myi...@gmail.com [mailto:myi...@gmail.com] On Behalf Of Murat Yildizoglu Sent: 02 June 2011 04:45 PM To: Steve Sidney Subject: Re: lyx 2 and sweave Dear Steve, If I try to make a little bit more explicit these instructions by Rob: Heres the process: 1. Install LyX. Use alpha6 (available from the LyX website), its the most stable. 2. Install R. Available from its projects website. 3. Install the appropriate RTools <http://www.murdoch-sutherland.com/Rtools/index.html> for your version of R. 4. Copy Sweave.sty from share/texmf in the R installation directory to some place in your LaTeX path. 5. Rebuild your LaTeX database. Reconfigure LyX. 1. You just install the most recent version of Lyx. 2. and 3. Check your version of R. Launch R and check the About box. Use this information to download the correct RTools version from the wab page indicated by Rob. 4. R is normally installed in Program Files\R-project if I remember well. Locate the subfolder share under the folder of R-project (using the file manager of WIndows), and then the folder subfolder texmf that should be in the share folder. Copy this folder in your Miktex tree. MikTex should normally be installed in Proram Files\Miktex and must contain a sunfolder texmf that again contains a subfolder latex. Put the the content of the share\texmf folder in a subfolder of this latex folder (you can create a new folder called sweave for example and copy the files in this new folder). 5. You have two choices here: The user-friendly one is to locate the MikTex manager program from your Programs/Miktex menu and refresh the Latex file index from here (one of the tabs must be about such a functionality). The more direct one uses the Command line window (You should be able to open one from Start/Programs/Accessories/Command... In this window just execute the following command: mktexlsr (type mktexlsr and push the Return key). This will read some folders and update their indexes for allowing to Latex compiler to find the corresponding files. Then Launch Lyx and Execute Reconfigure (please look in the menus, I do not remember under which menu this function appears in the Window version). I have written the paths to the relevant folders from memory, and I am not sure to remember well since I do not use Windows anymore. I also translate from French Windows. But if you look for the meaning of what I indicate, you should find your way. Sorry for not being more precise, but I hope that this can help you in the wai
RE: lyx 2 and sweave
Thanks Liviu I feel quite the 'idiot' at this stage, but thanks to both you and Murat for trying. Murat have just seen your last mail - yes it would be great if Rob or someone else familiar with setting it up in Windows could claridy and help. Regards Steve -Original Message- From: Liviu Andronic [mailto:landronim...@gmail.com] Sent: 13 June 2011 12:49 PM To: Steve Sidney Cc: myi...@gmail.com; lyx-users@lists.lyx.org Subject: Re: lyx 2 and sweave On Mon, Jun 13, 2011 at 12:35 PM, Steve Sidney <ste...@nla.org.za> wrote: > Thanks for your rsponse > > But if one never runs RTools, how does it do this. > You should only need to install RTools, this way properly configuring your Win environment for LyX to R communications, but not run it at any point when trying to compile an Sweave document. It was some time ago, but as far as I remember immediately after installing RTools (and after having already registered Sweave.sty with LaTeX) I could to easily compile LyX Sweave documents. To echo Murat, on Linux and Mac it's all much more straightforward, since simply installing LyX and R suffices to make LyX Sweave work. > In the instructions, it seems as if RTools does not get run; or am I > missing something. > > Also when I downloaded RTools it seems as if this is a tools to > re-compile the source code, since a full download also inlcludes a compiler etc. > Furthermore, it also seems as if RTools implements Cygwin. > That might be one of the things that allows for the LyX Sweave integration. It might be better for you to tell us what exactly doesn't work on your set-up: LyX compilation errors, etc. Regards Liviu > All in all very confusing > > Really appreciate you taking the trouble to try and help > > Regards > Steve > > -Original Message- > From: Liviu Andronic [mailto:landronim...@gmail.com] > Sent: 12 June 2011 11:32 PM > To: Steve Sidney > Cc: myi...@gmail.com; lyx-users@lists.lyx.org > Subject: Re: lyx 2 and sweave > > On Sun, Jun 12, 2011 at 4:02 PM, Steve Sidney <ste...@nla.org.za> wrote: >> How does RTools get invoked; I see that it is a very large >> installation >> (200Mb) with compiler etc but I can't see where it get used in either >> Rob's or your description. >> > As far as I know, RTools simply (among other things) properly sets up > R in the Windows environment so that LaTeX and LyX can communicate > with R. At this step, you shouldn't be doing much more. Are you sure > you have reconfigured LyX? > > Liviu > > -- Do you know how to read? http://www.alienetworks.com/srtest.cfm http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader Do you know how to write? http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail
RE: lyx 2 and sweave
Dear Murat I sent this last week but see now that it went to your University email - apologies. I am sending this again in case you did not receive it. I have also copied the list I have tried following your instructions - thanks for sending them but I still can't get it to work. How does RTools get invoked; I see that it is a very large installation (200Mb) with compiler etc but I can't see where it get used in either Rob's or your description. Once again thanks for all your help it is much appreciated. Regards Steve _ From: myi...@gmail.com [mailto:myi...@gmail.com] On Behalf Of Murat Yildizoglu Sent: 02 June 2011 04:45 PM To: Steve Sidney Subject: Re: lyx 2 and sweave Dear Steve, If I try to make a little bit more explicit these instructions by Rob: Heres the process: 1. Install LyX. Use alpha6 (available from the LyX website), its the most stable. 2. Install R. Available from its projects website. 3. Install the appropriate RTools http://www.murdoch-sutherland.com/Rtools/index.html for your version of R. 4. Copy Sweave.sty from share/texmf in the R installation directory to some place in your LaTeX path. 5. Rebuild your LaTeX database. Reconfigure LyX. 1. You just install the most recent version of Lyx. 2. and 3. Check your version of R. Launch R and check the About box. Use this information to download the correct RTools version from the wab page indicated by Rob. 4. R is normally installed in Program Files\R-project if I remember well. Locate the subfolder share under the folder of R-project (using the file manager of WIndows), and then the folder subfolder texmf that should be in the share folder. Copy this folder in your Miktex tree. MikTex should normally be installed in Proram Files\Miktex and must contain a sunfolder texmf that again contains a subfolder latex. Put the the content of the share\texmf folder in a subfolder of this latex folder (you can create a new folder called sweave for example and copy the files in this new folder). 5. You have two choices here: The user-friendly one is to locate the MikTex manager program from your Programs/Miktex menu and refresh the Latex file index from here (one of the tabs must be about such a functionality). The more direct one uses the Command line window (You should be able to open one from Start/Programs/Accessories/Command... In this window just execute the following command: mktexlsr (type mktexlsr and push the Return key). This will read some folders and update their indexes for allowing to Latex compiler to find the corresponding files. Then Launch Lyx and Execute Reconfigure (please look in the menus, I do not remember under which menu this function appears in the Window version). I have written the paths to the relevant folders from memory, and I am not sure to remember well since I do not use Windows anymore. I also translate from French Windows. But if you look for the meaning of what I indicate, you should find your way. Sorry for not being more precise, but I hope that this can help you in the waiting of more precise indications from an current Windows user. 2011/6/2 Steve Sidney ste...@nla.org.za Thanks Liviu Yes I have tried but not sure that I understand points 3), 4) and 5). Have also posted a question to Rob and hope he has time to reply. Regards -Original Message- From: Liviu Andronic [mailto:landronim...@gmail.com] Sent: 02 June 2011 02:43 PM To: Steve Sidney Cc: lyx-users@lists.lyx.org Subject: Re: lyx 2 and sweave On Thu, Jun 2, 2011 at 4:58 AM, Steve Sidney ste...@nla.org.za wrote: Dear list I have run into some problems trying to get lyx 2 working with Sweave. Assuming that you're on Windows, try Rob's instructions [1]. It is really much easier to set up LyX with Sweave on Linux (and possibly on Mac). Liviu [1] http://blog.oak-tree.us/index.php/2010/10/08/sweave-lyx2 Is anyone aware of a set of instructions that I could follow. It seems that those posted by Jeff Laake in Nov 2010 are not correct for Lyx 2.0 Any help would be appreciated. Regards Steve -- Do you know how to read? http://www.alienetworks.com/srtest.cfm http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader Do you know how to write? http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail http://garbl.home.comcast.net/%7Egarbl/stylemanual/e.htm#e-mail -- Prof. Murat Yildizoglu Université Paul Cézanne (Aix-Marseille 3) GREQAM (UMR CNRS 6579) Centre de la Vieille Charité 2, rue de la Charité 13236 Marseille cedex 02 Bureau 320 Tel : +33 4 91 14 07 27 (standard) Tel : +33 4 91 14 07 70 (secrétariat) Tel : +33 4 91 14 07 47 (bureau) Fax : +33 4 91 90 02 27 e-mail: murat.yildizo...@univ-cezanne.fr www : http:/yildizoglu.co.cc http://www.twitter.com/yildizoglu __
RE: lyx 2 and sweave
Dear Murat I sent this last week but see now that it went to your University email - apologies. I am sending this again in case you did not receive it. I have also copied the list I have tried following your instructions - thanks for sending them but I still can't get it to work. How does RTools get invoked; I see that it is a very large installation (200Mb) with compiler etc but I can't see where it get used in either Rob's or your description. Once again thanks for all your help it is much appreciated. Regards Steve _ From: myi...@gmail.com [mailto:myi...@gmail.com] On Behalf Of Murat Yildizoglu Sent: 02 June 2011 04:45 PM To: Steve Sidney Subject: Re: lyx 2 and sweave Dear Steve, If I try to make a little bit more explicit these instructions by Rob: Heres the process: 1. Install LyX. Use alpha6 (available from the LyX website), its the most stable. 2. Install R. Available from its projects website. 3. Install the appropriate RTools http://www.murdoch-sutherland.com/Rtools/index.html for your version of R. 4. Copy Sweave.sty from share/texmf in the R installation directory to some place in your LaTeX path. 5. Rebuild your LaTeX database. Reconfigure LyX. 1. You just install the most recent version of Lyx. 2. and 3. Check your version of R. Launch R and check the About box. Use this information to download the correct RTools version from the wab page indicated by Rob. 4. R is normally installed in Program Files\R-project if I remember well. Locate the subfolder share under the folder of R-project (using the file manager of WIndows), and then the folder subfolder texmf that should be in the share folder. Copy this folder in your Miktex tree. MikTex should normally be installed in Proram Files\Miktex and must contain a sunfolder texmf that again contains a subfolder latex. Put the the content of the share\texmf folder in a subfolder of this latex folder (you can create a new folder called sweave for example and copy the files in this new folder). 5. You have two choices here: The user-friendly one is to locate the MikTex manager program from your Programs/Miktex menu and refresh the Latex file index from here (one of the tabs must be about such a functionality). The more direct one uses the Command line window (You should be able to open one from Start/Programs/Accessories/Command... In this window just execute the following command: mktexlsr (type mktexlsr and push the Return key). This will read some folders and update their indexes for allowing to Latex compiler to find the corresponding files. Then Launch Lyx and Execute Reconfigure (please look in the menus, I do not remember under which menu this function appears in the Window version). I have written the paths to the relevant folders from memory, and I am not sure to remember well since I do not use Windows anymore. I also translate from French Windows. But if you look for the meaning of what I indicate, you should find your way. Sorry for not being more precise, but I hope that this can help you in the waiting of more precise indications from an current Windows user. 2011/6/2 Steve Sidney ste...@nla.org.za Thanks Liviu Yes I have tried but not sure that I understand points 3), 4) and 5). Have also posted a question to Rob and hope he has time to reply. Regards -Original Message- From: Liviu Andronic [mailto:landronim...@gmail.com] Sent: 02 June 2011 02:43 PM To: Steve Sidney Cc: lyx-users@lists.lyx.org Subject: Re: lyx 2 and sweave On Thu, Jun 2, 2011 at 4:58 AM, Steve Sidney ste...@nla.org.za wrote: Dear list I have run into some problems trying to get lyx 2 working with Sweave. Assuming that you're on Windows, try Rob's instructions [1]. It is really much easier to set up LyX with Sweave on Linux (and possibly on Mac). Liviu [1] http://blog.oak-tree.us/index.php/2010/10/08/sweave-lyx2 Is anyone aware of a set of instructions that I could follow. It seems that those posted by Jeff Laake in Nov 2010 are not correct for Lyx 2.0 Any help would be appreciated. Regards Steve -- Do you know how to read? http://www.alienetworks.com/srtest.cfm http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader Do you know how to write? http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail http://garbl.home.comcast.net/%7Egarbl/stylemanual/e.htm#e-mail -- Prof. Murat Yildizoglu Université Paul Cézanne (Aix-Marseille 3) GREQAM (UMR CNRS 6579) Centre de la Vieille Charité 2, rue de la Charité 13236 Marseille cedex 02 Bureau 320 Tel : +33 4 91 14 07 27 (standard) Tel : +33 4 91 14 07 70 (secrétariat) Tel : +33 4 91 14 07 47 (bureau) Fax : +33 4 91 90 02 27 e-mail: murat.yildizo...@univ-cezanne.fr www : http:/yildizoglu.co.cc http://www.twitter.com/yildizoglu __
RE: lyx 2 and sweave
Dear Murat I sent this last week but see now that it went to your University email - apologies. I am sending this again in case you did not receive it. I have also copied the list I have tried following your instructions - thanks for sending them but I still can't get it to work. How does RTools get invoked; I see that it is a very large installation (200Mb) with compiler etc but I can't see where it get used in either Rob's or your description. Once again thanks for all your help it is much appreciated. Regards Steve _ From: myi...@gmail.com [mailto:myi...@gmail.com] On Behalf Of Murat Yildizoglu Sent: 02 June 2011 04:45 PM To: Steve Sidney Subject: Re: lyx 2 and sweave Dear Steve, If I try to make a little bit more explicit these instructions by Rob: Heres the process: 1. Install LyX. Use alpha6 (available from the LyX website), its the most stable. 2. Install R. Available from its projects website. 3. Install the appropriate RTools <http://www.murdoch-sutherland.com/Rtools/index.html> for your version of R. 4. Copy Sweave.sty from share/texmf in the R installation directory to some place in your LaTeX path. 5. Rebuild your LaTeX database. Reconfigure LyX. 1. You just install the most recent version of Lyx. 2. and 3. Check your version of R. Launch R and check the About box. Use this information to download the correct RTools version from the wab page indicated by Rob. 4. R is normally installed in Program Files\R-project if I remember well. Locate the subfolder share under the folder of R-project (using the file manager of WIndows), and then the folder subfolder texmf that should be in the share folder. Copy this folder in your Miktex tree. MikTex should normally be installed in Proram Files\Miktex and must contain a sunfolder texmf that again contains a subfolder latex. Put the the content of the share\texmf folder in a subfolder of this latex folder (you can create a new folder called sweave for example and copy the files in this new folder). 5. You have two choices here: The user-friendly one is to locate the MikTex manager program from your Programs/Miktex menu and refresh the Latex file index from here (one of the tabs must be about such a functionality). The more direct one uses the Command line window (You should be able to open one from Start/Programs/Accessories/Command... In this window just execute the following command: mktexlsr (type mktexlsr and push the Return key). This will read some folders and update their indexes for allowing to Latex compiler to find the corresponding files. Then Launch Lyx and Execute Reconfigure (please look in the menus, I do not remember under which menu this function appears in the Window version). I have written the paths to the relevant folders from memory, and I am not sure to remember well since I do not use Windows anymore. I also translate from French Windows. But if you look for the meaning of what I indicate, you should find your way. Sorry for not being more precise, but I hope that this can help you in the waiting of more precise indications from an current Windows user. 2011/6/2 Steve Sidney <ste...@nla.org.za> Thanks Liviu Yes I have tried but not sure that I understand points 3), 4) and 5). Have also posted a question to Rob and hope he has time to reply. Regards -Original Message- From: Liviu Andronic [mailto:landronim...@gmail.com] Sent: 02 June 2011 02:43 PM To: Steve Sidney Cc: lyx-users@lists.lyx.org Subject: Re: lyx 2 and sweave On Thu, Jun 2, 2011 at 4:58 AM, Steve Sidney <ste...@nla.org.za> wrote: > Dear list > > I have run into some problems trying to get lyx 2 working with Sweave. > Assuming that you're on Windows, try Rob's instructions [1]. It is really much easier to set up LyX with Sweave on Linux (and possibly on Mac). Liviu [1] http://blog.oak-tree.us/index.php/2010/10/08/sweave-lyx2 > Is anyone aware of a set of instructions that I could follow. > > It seems that those posted by "Jeff Laake in Nov 2010" are not correct > for Lyx 2.0 > > Any help would be appreciated. > > Regards > Steve > > > > -- Do you know how to read? http://www.alienetworks.com/srtest.cfm http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader Do you know how to write? http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail <http://garbl.home.comcast.net/%7Egarbl/stylemanual/e.htm#e-mail> -- Prof. Murat Yildizoglu Université Paul Cézanne (Aix-Marseille 3) GREQAM (UMR CNRS 6579) Centre de la Vieille Charité 2, rue de la Charité 13236 Marseille cedex 02 Bureau 320 Tel : +33 4 91 14 07 27 (standard) Tel : +33 4 91 14 07 70 (secrétariat) Tel : +33 4 91 14 07 47 (bureau) Fax : +33 4 91 90 02 27 e-mail: murat.yildizo...@univ-cezanne.fr www : http:/yildizoglu.co.cc http://www.twitter.com/yildizoglu __
lyx 2 and sweave
Dear list I have run into some problems trying to get lyx 2 working with Sweave. Is anyone aware of a set of instructions that I could follow. It seems that those posted by Jeff Laake in Nov 2010 are not correct for Lyx 2.0 Any help would be appreciated. Regards Steve
RE: lyx 2 and sweave
Thanks Liviu Yes I have tried but not sure that I understand points 3), 4) and 5). Have also posted a question to Rob and hope he has time to reply. Regards -Original Message- From: Liviu Andronic [mailto:landronim...@gmail.com] Sent: 02 June 2011 02:43 PM To: Steve Sidney Cc: lyx-users@lists.lyx.org Subject: Re: lyx 2 and sweave On Thu, Jun 2, 2011 at 4:58 AM, Steve Sidney ste...@nla.org.za wrote: Dear list I have run into some problems trying to get lyx 2 working with Sweave. Assuming that you're on Windows, try Rob's instructions [1]. It is really much easier to set up LyX with Sweave on Linux (and possibly on Mac). Liviu [1] http://blog.oak-tree.us/index.php/2010/10/08/sweave-lyx2 Is anyone aware of a set of instructions that I could follow. It seems that those posted by Jeff Laake in Nov 2010 are not correct for Lyx 2.0 Any help would be appreciated. Regards Steve -- Do you know how to read? http://www.alienetworks.com/srtest.cfm http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader Do you know how to write? http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail
lyx 2 and sweave
Dear list I have run into some problems trying to get lyx 2 working with Sweave. Is anyone aware of a set of instructions that I could follow. It seems that those posted by Jeff Laake in Nov 2010 are not correct for Lyx 2.0 Any help would be appreciated. Regards Steve
RE: lyx 2 and sweave
Thanks Liviu Yes I have tried but not sure that I understand points 3), 4) and 5). Have also posted a question to Rob and hope he has time to reply. Regards -Original Message- From: Liviu Andronic [mailto:landronim...@gmail.com] Sent: 02 June 2011 02:43 PM To: Steve Sidney Cc: lyx-users@lists.lyx.org Subject: Re: lyx 2 and sweave On Thu, Jun 2, 2011 at 4:58 AM, Steve Sidney ste...@nla.org.za wrote: Dear list I have run into some problems trying to get lyx 2 working with Sweave. Assuming that you're on Windows, try Rob's instructions [1]. It is really much easier to set up LyX with Sweave on Linux (and possibly on Mac). Liviu [1] http://blog.oak-tree.us/index.php/2010/10/08/sweave-lyx2 Is anyone aware of a set of instructions that I could follow. It seems that those posted by Jeff Laake in Nov 2010 are not correct for Lyx 2.0 Any help would be appreciated. Regards Steve -- Do you know how to read? http://www.alienetworks.com/srtest.cfm http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader Do you know how to write? http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail
lyx 2 and sweave
Dear list I have run into some problems trying to get lyx 2 working with Sweave. Is anyone aware of a set of instructions that I could follow. It seems that those posted by "Jeff Laake in Nov 2010" are not correct for Lyx 2.0 Any help would be appreciated. Regards Steve
RE: lyx 2 and sweave
Thanks Liviu Yes I have tried but not sure that I understand points 3), 4) and 5). Have also posted a question to Rob and hope he has time to reply. Regards -Original Message- From: Liviu Andronic [mailto:landronim...@gmail.com] Sent: 02 June 2011 02:43 PM To: Steve Sidney Cc: lyx-users@lists.lyx.org Subject: Re: lyx 2 and sweave On Thu, Jun 2, 2011 at 4:58 AM, Steve Sidney <ste...@nla.org.za> wrote: > Dear list > > I have run into some problems trying to get lyx 2 working with Sweave. > Assuming that you're on Windows, try Rob's instructions [1]. It is really much easier to set up LyX with Sweave on Linux (and possibly on Mac). Liviu [1] http://blog.oak-tree.us/index.php/2010/10/08/sweave-lyx2 > Is anyone aware of a set of instructions that I could follow. > > It seems that those posted by "Jeff Laake in Nov 2010" are not correct > for Lyx 2.0 > > Any help would be appreciated. > > Regards > Steve > > > > -- Do you know how to read? http://www.alienetworks.com/srtest.cfm http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader Do you know how to write? http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail
Re: Table Challenge
Hi Rob and list After posting the same message on the Latex Community forum I was informed of a relatively new tool called datatool which appears to solve the problem. Unofrtunately I can't seem to get this package to work in Lyx. Has anybody had any experience with datatool and Lyx Any help would really be appreciated Regards Steve - Original Message - From: Rob Oakes lyx-de...@oak-tree.us To: 'SteveSB' sbsid...@mweb.co.za Cc: lyx-users@lists.lyx.org Sent: Tuesday, January 19, 2010 11:24 PM Subject: RE: Table Challenge Hi Steve, Yes, you can automatically insert page breaks into a long table. This is done through the use of the longtable package. There is a good overview on how to use longtable in the LyX user manual. Longtable has a few nice features, such as the ability to automatically add a header to the table on every page. I am not, aware of a way to automatically split a given table into two sections, however. Perhaps others on the list might be able to provide additional recommendations? Cheers, Rob Oakes -Original Message- From: SteveSB [mailto:sbsid...@mweb.co.za] Sent: Tuesday, January 19, 2010 1:48 PM To: lyx-users@lists.lyx.org Subject: Table Challenge Dear list As very much a Lyx/Latex newbie, I hope that this is not too difficult a problem to be resolved. I produce a multi-col table of data in R and at the moment I reconfigure the table in Excel so that I can copy/paste it into a report in Word. I have managed to get the Sweave/Lyx link in MS Windows working but my problem is the follows. From the R code the table looks like this - up to 80 rows or more and 5 col lab_id A B ZBW ZWI 4er66 3.60 3.30 3.26 6.49 4gcyi 2.96 2.91 0.47 1.10 5d3hh 3.08 3.11 1.34 -0.88 5d3wt 1.79 1.85 -5.60 -1.56 5ycya # # N/A N/A Middle rows removed to save space t5ee2 2.43 2.45 -2.23 -0.46 t9455 3.00 2.97 0.74 0.67 ta4ww 2.46 2.47 -2.09 -0.41 tatc4 2.65 2.64 -1.09 0.10 u3dd5 2.62 2.69 -1.04 -1.68 u6d33 2.72 2.72 -0.71 -0.30 v3s8f 3.06 3.09 1.21 -0.68 v44h6 2.72 2.73 -0.66 -0.29 wa5hh # # N/A N/A Since this does not fit on a single A4 page (portrait), I then manually split the table in half and it looks like this lab_id A B ZBW ZWI lab_id A B ZBW ZWI 4er66 3.60 3.30 3.26 6.49 h2o42 3.00 2.95 0.69 0.89 4gcyi 2.96 2.91 0.47 1.10 h5s22 3.86 3.79 5.30 1.44 5d3hh 3.08 3.11 1.34 -0.88 h7ss2 2.48 2.00 -3.32 10.35 5d3wt 1.79 1.85 -5.60 -1.56 i8s4b 2.90 2.86 0.16 0.64 5ycya # # N/A N/A ky3sn 2.94 2.93 0.47 0.21 Middle rows removed to save space d33ww 2.93 3.00 0.62 -1.66 tatc4 2.65 2.64 -1.09 0.10 dml25 2.78 2.78 -0.39 -0.12 u3dd5 2.62 2.69 -1.04 -1.68 e33ws 2.95 3.02 0.73 -1.69 u6d33 2.72 2.72 -0.71 -0.30 f3c4g 2.72 2.74 -0.66 -0.65 v3s8f 3.06 3.09 1.21 -0.68 f3s5t 2.83 2.90 0.09 -1.73 v44h6 2.72 2.73 -0.66 -0.29 f44ee 2.79 2.77 -0.39 0.20 wa5hh # # N/A N/A g2a44 2.76 2.77 -0.45 -0.28 My question is there way a that Lyx/Latex can do this without my manual intervention. I hope that the post is clear enough, but if there are any questions please shout Regards Steve -- View this message in context: http://n2.nabble.com/Table-Challenge-tp4422819p4422819.html Sent from the LyX - Users mailing list archive at Nabble.com.
Re: Table Challenge
Hi Rob and list After posting the same message on the Latex Community forum I was informed of a relatively new tool called datatool which appears to solve the problem. Unofrtunately I can't seem to get this package to work in Lyx. Has anybody had any experience with datatool and Lyx Any help would really be appreciated Regards Steve - Original Message - From: Rob Oakes lyx-de...@oak-tree.us To: 'SteveSB' sbsid...@mweb.co.za Cc: lyx-users@lists.lyx.org Sent: Tuesday, January 19, 2010 11:24 PM Subject: RE: Table Challenge Hi Steve, Yes, you can automatically insert page breaks into a long table. This is done through the use of the longtable package. There is a good overview on how to use longtable in the LyX user manual. Longtable has a few nice features, such as the ability to automatically add a header to the table on every page. I am not, aware of a way to automatically split a given table into two sections, however. Perhaps others on the list might be able to provide additional recommendations? Cheers, Rob Oakes -Original Message- From: SteveSB [mailto:sbsid...@mweb.co.za] Sent: Tuesday, January 19, 2010 1:48 PM To: lyx-users@lists.lyx.org Subject: Table Challenge Dear list As very much a Lyx/Latex newbie, I hope that this is not too difficult a problem to be resolved. I produce a multi-col table of data in R and at the moment I reconfigure the table in Excel so that I can copy/paste it into a report in Word. I have managed to get the Sweave/Lyx link in MS Windows working but my problem is the follows. From the R code the table looks like this - up to 80 rows or more and 5 col lab_id A B ZBW ZWI 4er66 3.60 3.30 3.26 6.49 4gcyi 2.96 2.91 0.47 1.10 5d3hh 3.08 3.11 1.34 -0.88 5d3wt 1.79 1.85 -5.60 -1.56 5ycya # # N/A N/A Middle rows removed to save space t5ee2 2.43 2.45 -2.23 -0.46 t9455 3.00 2.97 0.74 0.67 ta4ww 2.46 2.47 -2.09 -0.41 tatc4 2.65 2.64 -1.09 0.10 u3dd5 2.62 2.69 -1.04 -1.68 u6d33 2.72 2.72 -0.71 -0.30 v3s8f 3.06 3.09 1.21 -0.68 v44h6 2.72 2.73 -0.66 -0.29 wa5hh # # N/A N/A Since this does not fit on a single A4 page (portrait), I then manually split the table in half and it looks like this lab_id A B ZBW ZWI lab_id A B ZBW ZWI 4er66 3.60 3.30 3.26 6.49 h2o42 3.00 2.95 0.69 0.89 4gcyi 2.96 2.91 0.47 1.10 h5s22 3.86 3.79 5.30 1.44 5d3hh 3.08 3.11 1.34 -0.88 h7ss2 2.48 2.00 -3.32 10.35 5d3wt 1.79 1.85 -5.60 -1.56 i8s4b 2.90 2.86 0.16 0.64 5ycya # # N/A N/A ky3sn 2.94 2.93 0.47 0.21 Middle rows removed to save space d33ww 2.93 3.00 0.62 -1.66 tatc4 2.65 2.64 -1.09 0.10 dml25 2.78 2.78 -0.39 -0.12 u3dd5 2.62 2.69 -1.04 -1.68 e33ws 2.95 3.02 0.73 -1.69 u6d33 2.72 2.72 -0.71 -0.30 f3c4g 2.72 2.74 -0.66 -0.65 v3s8f 3.06 3.09 1.21 -0.68 f3s5t 2.83 2.90 0.09 -1.73 v44h6 2.72 2.73 -0.66 -0.29 f44ee 2.79 2.77 -0.39 0.20 wa5hh # # N/A N/A g2a44 2.76 2.77 -0.45 -0.28 My question is there way a that Lyx/Latex can do this without my manual intervention. I hope that the post is clear enough, but if there are any questions please shout Regards Steve -- View this message in context: http://n2.nabble.com/Table-Challenge-tp4422819p4422819.html Sent from the LyX - Users mailing list archive at Nabble.com.
Re: Table Challenge
Hi Rob and list After posting the same message on the Latex Community forum I was informed of a relatively new tool called datatool which appears to solve the problem. Unofrtunately I can't seem to get this package to work in Lyx. Has anybody had any experience with datatool and Lyx Any help would really be appreciated Regards Steve - Original Message - From: "Rob Oakes"To: "'SteveSB'" Cc: Sent: Tuesday, January 19, 2010 11:24 PM Subject: RE: Table Challenge Hi Steve, Yes, you can automatically insert page breaks into a long table. This is done through the use of the longtable package. There is a good overview on how to use longtable in the LyX user manual. Longtable has a few nice features, such as the ability to automatically add a header to the table on every page. I am not, aware of a way to automatically split a given table into two sections, however. Perhaps others on the list might be able to provide additional recommendations? Cheers, Rob Oakes -Original Message- From: SteveSB [mailto:sbsid...@mweb.co.za] Sent: Tuesday, January 19, 2010 1:48 PM To: lyx-users@lists.lyx.org Subject: Table Challenge Dear list As very much a Lyx/Latex newbie, I hope that this is not too difficult a problem to be resolved. I produce a multi-col table of data in R and at the moment I reconfigure the table in Excel so that I can copy/paste it into a report in Word. I have managed to get the Sweave/Lyx link in MS Windows working but my problem is the follows. From the R code the table looks like this - up to 80 rows or more and 5 col lab_id A B ZBW ZWI 4er66 3.60 3.30 3.26 6.49 4gcyi 2.96 2.91 0.47 1.10 5d3hh 3.08 3.11 1.34 -0.88 5d3wt 1.79 1.85 -5.60 -1.56 5ycya # # N/A N/A Middle rows removed to save space t5ee2 2.43 2.45 -2.23 -0.46 t9455 3.00 2.97 0.74 0.67 ta4ww 2.46 2.47 -2.09 -0.41 tatc4 2.65 2.64 -1.09 0.10 u3dd5 2.62 2.69 -1.04 -1.68 u6d33 2.72 2.72 -0.71 -0.30 v3s8f 3.06 3.09 1.21 -0.68 v44h6 2.72 2.73 -0.66 -0.29 wa5hh # # N/A N/A Since this does not fit on a single A4 page (portrait), I then manually split the table in half and it looks like this lab_id A B ZBW ZWI lab_id A B ZBW ZWI 4er66 3.60 3.30 3.26 6.49 h2o42 3.00 2.95 0.69 0.89 4gcyi 2.96 2.91 0.47 1.10 h5s22 3.86 3.79 5.30 1.44 5d3hh 3.08 3.11 1.34 -0.88 h7ss2 2.48 2.00 -3.32 10.35 5d3wt 1.79 1.85 -5.60 -1.56 i8s4b 2.90 2.86 0.16 0.64 5ycya # # N/A N/A ky3sn 2.94 2.93 0.47 0.21 Middle rows removed to save space d33ww 2.93 3.00 0.62 -1.66 tatc4 2.65 2.64 -1.09 0.10 dml25 2.78 2.78 -0.39 -0.12 u3dd5 2.62 2.69 -1.04 -1.68 e33ws 2.95 3.02 0.73 -1.69 u6d33 2.72 2.72 -0.71 -0.30 f3c4g 2.72 2.74 -0.66 -0.65 v3s8f 3.06 3.09 1.21 -0.68 f3s5t 2.83 2.90 0.09 -1.73 v44h6 2.72 2.73 -0.66 -0.29 f44ee 2.79 2.77 -0.39 0.20 wa5hh # # N/A N/A g2a44 2.76 2.77 -0.45 -0.28 My question is there way a that Lyx/Latex can do this without my manual intervention. I hope that the post is clear enough, but if there are any questions please shout Regards Steve -- View this message in context: http://n2.nabble.com/Table-Challenge-tp4422819p4422819.html Sent from the LyX - Users mailing list archive at Nabble.com.
Re: Table Challenge
Rob Thanks. Although I haven't used the longtable package, I am aware of its exsistence. My report is already some 30 odd pages and if I allow each table to take 2 pages it will make it even more bulky. There seems to be two alternatives. 1) Carry on preparing the table by hand as I currently do and then importing it directly into Lyx. 2) Attempt to create the table in R. Do you think it's worth the effort to do this in R. Regards Steve - Original Message - From: Rob Oakes lyx-de...@oak-tree.us To: 'SteveSB' sbsid...@mweb.co.za Cc: lyx-users@lists.lyx.org Sent: Tuesday, January 19, 2010 11:24 PM Subject: RE: Table Challenge Hi Steve, Yes, you can automatically insert page breaks into a long table. This is done through the use of the longtable package. There is a good overview on how to use longtable in the LyX user manual. Longtable has a few nice features, such as the ability to automatically add a header to the table on every page. I am not, aware of a way to automatically split a given table into two sections, however. Perhaps others on the list might be able to provide additional recommendations? Cheers, Rob Oakes -Original Message- From: SteveSB [mailto:sbsid...@mweb.co.za] Sent: Tuesday, January 19, 2010 1:48 PM To: lyx-users@lists.lyx.org Subject: Table Challenge Dear list As very much a Lyx/Latex newbie, I hope that this is not too difficult a problem to be resolved. I produce a multi-col table of data in R and at the moment I reconfigure the table in Excel so that I can copy/paste it into a report in Word. I have managed to get the Sweave/Lyx link in MS Windows working but my problem is the follows. From the R code the table looks like this - up to 80 rows or more and 5 col lab_id A B ZBW ZWI 4er66 3.60 3.30 3.26 6.49 4gcyi 2.96 2.91 0.47 1.10 5d3hh 3.08 3.11 1.34 -0.88 5d3wt 1.79 1.85 -5.60 -1.56 5ycya # # N/A N/A Middle rows removed to save space t5ee2 2.43 2.45 -2.23 -0.46 t9455 3.00 2.97 0.74 0.67 ta4ww 2.46 2.47 -2.09 -0.41 tatc4 2.65 2.64 -1.09 0.10 u3dd5 2.62 2.69 -1.04 -1.68 u6d33 2.72 2.72 -0.71 -0.30 v3s8f 3.06 3.09 1.21 -0.68 v44h6 2.72 2.73 -0.66 -0.29 wa5hh # # N/A N/A Since this does not fit on a single A4 page (portrait), I then manually split the table in half and it looks like this lab_id A B ZBW ZWI lab_id A B ZBW ZWI 4er66 3.60 3.30 3.26 6.49 h2o42 3.00 2.95 0.69 0.89 4gcyi 2.96 2.91 0.47 1.10 h5s22 3.86 3.79 5.30 1.44 5d3hh 3.08 3.11 1.34 -0.88 h7ss2 2.48 2.00 -3.32 10.35 5d3wt 1.79 1.85 -5.60 -1.56 i8s4b 2.90 2.86 0.16 0.64 5ycya # # N/A N/A ky3sn 2.94 2.93 0.47 0.21 Middle rows removed to save space d33ww 2.93 3.00 0.62 -1.66 tatc4 2.65 2.64 -1.09 0.10 dml25 2.78 2.78 -0.39 -0.12 u3dd5 2.62 2.69 -1.04 -1.68 e33ws 2.95 3.02 0.73 -1.69 u6d33 2.72 2.72 -0.71 -0.30 f3c4g 2.72 2.74 -0.66 -0.65 v3s8f 3.06 3.09 1.21 -0.68 f3s5t 2.83 2.90 0.09 -1.73 v44h6 2.72 2.73 -0.66 -0.29 f44ee 2.79 2.77 -0.39 0.20 wa5hh # # N/A N/A g2a44 2.76 2.77 -0.45 -0.28 My question is there way a that Lyx/Latex can do this without my manual intervention. I hope that the post is clear enough, but if there are any questions please shout Regards Steve -- View this message in context: http://n2.nabble.com/Table-Challenge-tp4422819p4422819.html Sent from the LyX - Users mailing list archive at Nabble.com.
Re: Table Challenge
Liviu Thanks for the response and the interest I currently do it manually but copy/paste from Excel into Word. I use R to do the analysis and then write a csv file which I manipulate in Excel and paste into Word I am aware of long tables and xtable but that does not solve the problem of splitting the number of rows in half and placing them side by side on one page Also see my response to Rob Regards Steve - Original Message - From: Liviu Andronic landronim...@gmail.com To: SteveSB sbsid...@mweb.co.za Cc: lyx-users@lists.lyx.org Sent: Wednesday, January 20, 2010 12:01 AM Subject: Re: Table Challenge Hello On 1/19/10, SteveSB sbsid...@mweb.co.za wrote: I have managed to get the Sweave/Lyx link in MS Windows working but my problem is the follows. In the original post it wasn't clear whether you were transferring the results to LyX manually (copy paste) or via Sweave (using xtable() or latex() commands). In case of the latter, the two commands allow to convert R objects into LaTeX long-tables. As Rob already mentioned, these tables would automatically break at the end of the page. d33ww 2.933.000.62-1.66 tatc4 2.65 2.64-1.09 0.10 dml25 2.782.78-0.39 -0.12 u3dd5 2.62 2.69-1.04 -1.68 e33ws 2.953.020.73-1.69 u6d33 2.72 2.72-0.71 -0.30 f3c4g 2.722.74-0.66 -0.65 v3s8f 3.063.09 1.21-0.68 f3s5t 2.832.900.09-1.73 v44h6 2.72 2.73-0.66 -0.29 f44ee 2.792.77-0.39 0.20wa5hh # # N/A N/A g2a44 2.762.77-0.45 -0.28 My question is there way a that Lyx/Latex can do this without my manual intervention. Again, how do you manually split it? Copy paste or by manipulating the R object? The later might be an acceptable solution. Regards Liviu
Re: Table Challenge
Rob Thanks. Although I haven't used the longtable package, I am aware of its exsistence. My report is already some 30 odd pages and if I allow each table to take 2 pages it will make it even more bulky. There seems to be two alternatives. 1) Carry on preparing the table by hand as I currently do and then importing it directly into Lyx. 2) Attempt to create the table in R. Do you think it's worth the effort to do this in R. Regards Steve - Original Message - From: Rob Oakes lyx-de...@oak-tree.us To: 'SteveSB' sbsid...@mweb.co.za Cc: lyx-users@lists.lyx.org Sent: Tuesday, January 19, 2010 11:24 PM Subject: RE: Table Challenge Hi Steve, Yes, you can automatically insert page breaks into a long table. This is done through the use of the longtable package. There is a good overview on how to use longtable in the LyX user manual. Longtable has a few nice features, such as the ability to automatically add a header to the table on every page. I am not, aware of a way to automatically split a given table into two sections, however. Perhaps others on the list might be able to provide additional recommendations? Cheers, Rob Oakes -Original Message- From: SteveSB [mailto:sbsid...@mweb.co.za] Sent: Tuesday, January 19, 2010 1:48 PM To: lyx-users@lists.lyx.org Subject: Table Challenge Dear list As very much a Lyx/Latex newbie, I hope that this is not too difficult a problem to be resolved. I produce a multi-col table of data in R and at the moment I reconfigure the table in Excel so that I can copy/paste it into a report in Word. I have managed to get the Sweave/Lyx link in MS Windows working but my problem is the follows. From the R code the table looks like this - up to 80 rows or more and 5 col lab_id A B ZBW ZWI 4er66 3.60 3.30 3.26 6.49 4gcyi 2.96 2.91 0.47 1.10 5d3hh 3.08 3.11 1.34 -0.88 5d3wt 1.79 1.85 -5.60 -1.56 5ycya # # N/A N/A Middle rows removed to save space t5ee2 2.43 2.45 -2.23 -0.46 t9455 3.00 2.97 0.74 0.67 ta4ww 2.46 2.47 -2.09 -0.41 tatc4 2.65 2.64 -1.09 0.10 u3dd5 2.62 2.69 -1.04 -1.68 u6d33 2.72 2.72 -0.71 -0.30 v3s8f 3.06 3.09 1.21 -0.68 v44h6 2.72 2.73 -0.66 -0.29 wa5hh # # N/A N/A Since this does not fit on a single A4 page (portrait), I then manually split the table in half and it looks like this lab_id A B ZBW ZWI lab_id A B ZBW ZWI 4er66 3.60 3.30 3.26 6.49 h2o42 3.00 2.95 0.69 0.89 4gcyi 2.96 2.91 0.47 1.10 h5s22 3.86 3.79 5.30 1.44 5d3hh 3.08 3.11 1.34 -0.88 h7ss2 2.48 2.00 -3.32 10.35 5d3wt 1.79 1.85 -5.60 -1.56 i8s4b 2.90 2.86 0.16 0.64 5ycya # # N/A N/A ky3sn 2.94 2.93 0.47 0.21 Middle rows removed to save space d33ww 2.93 3.00 0.62 -1.66 tatc4 2.65 2.64 -1.09 0.10 dml25 2.78 2.78 -0.39 -0.12 u3dd5 2.62 2.69 -1.04 -1.68 e33ws 2.95 3.02 0.73 -1.69 u6d33 2.72 2.72 -0.71 -0.30 f3c4g 2.72 2.74 -0.66 -0.65 v3s8f 3.06 3.09 1.21 -0.68 f3s5t 2.83 2.90 0.09 -1.73 v44h6 2.72 2.73 -0.66 -0.29 f44ee 2.79 2.77 -0.39 0.20 wa5hh # # N/A N/A g2a44 2.76 2.77 -0.45 -0.28 My question is there way a that Lyx/Latex can do this without my manual intervention. I hope that the post is clear enough, but if there are any questions please shout Regards Steve -- View this message in context: http://n2.nabble.com/Table-Challenge-tp4422819p4422819.html Sent from the LyX - Users mailing list archive at Nabble.com.
Re: Table Challenge
Liviu Thanks for the response and the interest I currently do it manually but copy/paste from Excel into Word. I use R to do the analysis and then write a csv file which I manipulate in Excel and paste into Word I am aware of long tables and xtable but that does not solve the problem of splitting the number of rows in half and placing them side by side on one page Also see my response to Rob Regards Steve - Original Message - From: Liviu Andronic landronim...@gmail.com To: SteveSB sbsid...@mweb.co.za Cc: lyx-users@lists.lyx.org Sent: Wednesday, January 20, 2010 12:01 AM Subject: Re: Table Challenge Hello On 1/19/10, SteveSB sbsid...@mweb.co.za wrote: I have managed to get the Sweave/Lyx link in MS Windows working but my problem is the follows. In the original post it wasn't clear whether you were transferring the results to LyX manually (copy paste) or via Sweave (using xtable() or latex() commands). In case of the latter, the two commands allow to convert R objects into LaTeX long-tables. As Rob already mentioned, these tables would automatically break at the end of the page. d33ww 2.933.000.62-1.66 tatc4 2.65 2.64-1.09 0.10 dml25 2.782.78-0.39 -0.12 u3dd5 2.62 2.69-1.04 -1.68 e33ws 2.953.020.73-1.69 u6d33 2.72 2.72-0.71 -0.30 f3c4g 2.722.74-0.66 -0.65 v3s8f 3.063.09 1.21-0.68 f3s5t 2.832.900.09-1.73 v44h6 2.72 2.73-0.66 -0.29 f44ee 2.792.77-0.39 0.20wa5hh # # N/A N/A g2a44 2.762.77-0.45 -0.28 My question is there way a that Lyx/Latex can do this without my manual intervention. Again, how do you manually split it? Copy paste or by manipulating the R object? The later might be an acceptable solution. Regards Liviu
Re: Table Challenge
Rob Thanks. Although I haven't used the longtable package, I am aware of its exsistence. My report is already some 30 odd pages and if I allow each table to take 2 pages it will make it even more bulky. There seems to be two alternatives. 1) Carry on preparing the table by hand as I currently do and then importing it directly into Lyx. 2) Attempt to create the table in R. Do you think it's worth the effort to do this in R. Regards Steve - Original Message - From: "Rob Oakes"To: "'SteveSB'" Cc: Sent: Tuesday, January 19, 2010 11:24 PM Subject: RE: Table Challenge Hi Steve, Yes, you can automatically insert page breaks into a long table. This is done through the use of the longtable package. There is a good overview on how to use longtable in the LyX user manual. Longtable has a few nice features, such as the ability to automatically add a header to the table on every page. I am not, aware of a way to automatically split a given table into two sections, however. Perhaps others on the list might be able to provide additional recommendations? Cheers, Rob Oakes -Original Message- From: SteveSB [mailto:sbsid...@mweb.co.za] Sent: Tuesday, January 19, 2010 1:48 PM To: lyx-users@lists.lyx.org Subject: Table Challenge Dear list As very much a Lyx/Latex newbie, I hope that this is not too difficult a problem to be resolved. I produce a multi-col table of data in R and at the moment I reconfigure the table in Excel so that I can copy/paste it into a report in Word. I have managed to get the Sweave/Lyx link in MS Windows working but my problem is the follows. From the R code the table looks like this - up to 80 rows or more and 5 col lab_id A B ZBW ZWI 4er66 3.60 3.30 3.26 6.49 4gcyi 2.96 2.91 0.47 1.10 5d3hh 3.08 3.11 1.34 -0.88 5d3wt 1.79 1.85 -5.60 -1.56 5ycya # # N/A N/A Middle rows removed to save space t5ee2 2.43 2.45 -2.23 -0.46 t9455 3.00 2.97 0.74 0.67 ta4ww 2.46 2.47 -2.09 -0.41 tatc4 2.65 2.64 -1.09 0.10 u3dd5 2.62 2.69 -1.04 -1.68 u6d33 2.72 2.72 -0.71 -0.30 v3s8f 3.06 3.09 1.21 -0.68 v44h6 2.72 2.73 -0.66 -0.29 wa5hh # # N/A N/A Since this does not fit on a single A4 page (portrait), I then manually split the table in half and it looks like this lab_id A B ZBW ZWI lab_id A B ZBW ZWI 4er66 3.60 3.30 3.26 6.49 h2o42 3.00 2.95 0.69 0.89 4gcyi 2.96 2.91 0.47 1.10 h5s22 3.86 3.79 5.30 1.44 5d3hh 3.08 3.11 1.34 -0.88 h7ss2 2.48 2.00 -3.32 10.35 5d3wt 1.79 1.85 -5.60 -1.56 i8s4b 2.90 2.86 0.16 0.64 5ycya # # N/A N/A ky3sn 2.94 2.93 0.47 0.21 Middle rows removed to save space d33ww 2.93 3.00 0.62 -1.66 tatc4 2.65 2.64 -1.09 0.10 dml25 2.78 2.78 -0.39 -0.12 u3dd5 2.62 2.69 -1.04 -1.68 e33ws 2.95 3.02 0.73 -1.69 u6d33 2.72 2.72 -0.71 -0.30 f3c4g 2.72 2.74 -0.66 -0.65 v3s8f 3.06 3.09 1.21 -0.68 f3s5t 2.83 2.90 0.09 -1.73 v44h6 2.72 2.73 -0.66 -0.29 f44ee 2.79 2.77 -0.39 0.20 wa5hh # # N/A N/A g2a44 2.76 2.77 -0.45 -0.28 My question is there way a that Lyx/Latex can do this without my manual intervention. I hope that the post is clear enough, but if there are any questions please shout Regards Steve -- View this message in context: http://n2.nabble.com/Table-Challenge-tp4422819p4422819.html Sent from the LyX - Users mailing list archive at Nabble.com.
Re: Table Challenge
Liviu Thanks for the response and the interest I currently do it manually but copy/paste from Excel into Word. I use R to do the analysis and then write a csv file which I manipulate in Excel and paste into Word I am aware of long tables and xtable but that does not solve the problem of splitting the number of rows in half and placing them side by side on one page Also see my response to Rob Regards Steve - Original Message - From: "Liviu Andronic"To: "SteveSB" Cc: Sent: Wednesday, January 20, 2010 12:01 AM Subject: Re: Table Challenge Hello On 1/19/10, SteveSB wrote: I have managed to get the Sweave/Lyx link in MS Windows working but my problem is the follows. In the original post it wasn't clear whether you were transferring the results to LyX manually (copy & paste) or via Sweave (using xtable() or latex() commands). In case of the latter, the two commands allow to convert R objects into LaTeX long-tables. As Rob already mentioned, these tables would automatically break at the end of the page. d33ww 2.933.000.62-1.66 tatc4 2.65 2.64-1.09 0.10 dml25 2.782.78-0.39 -0.12 u3dd5 2.62 2.69-1.04 -1.68 e33ws 2.953.020.73-1.69 u6d33 2.72 2.72-0.71 -0.30 f3c4g 2.722.74-0.66 -0.65 v3s8f 3.063.09 1.21-0.68 f3s5t 2.832.900.09-1.73 v44h6 2.72 2.73-0.66 -0.29 f44ee 2.792.77-0.39 0.20wa5hh # # N/A N/A g2a44 2.762.77-0.45 -0.28 My question is there way a that Lyx/Latex can do this without my manual intervention. Again, how do you manually split it? Copy & paste or by manipulating the R object? The later might be an acceptable solution. Regards Liviu