Re: Missing Rnw(knitr) module

2017-08-22 Thread Scott Kostyshak
On Tue, Aug 22, 2017 at 03:56:24PM -0400, John Kane wrote:
> Just as a minor follow-up the knitr.module is in usr/share/lux/layouts. So
> I have knitr installed in R and the knitr.module in LyX.
> 
> Presumably I'm missing something obvious but what?

Can you send your configure log? That's always useful for issues like
these.

Scott


signature.asc
Description: PGP signature


Re: Grammar checking

2017-08-22 Thread Scott Kostyshak
On Tue, Aug 22, 2017 at 05:38:59PM -0400, Steve Litt wrote:
> On Tue, 22 Aug 2017 15:35:38 +0200
> "Patrick Dupre"  wrote:
> 
> > Hello,
> > 
> > lyx offers a language checker, but not a grammar checker.
> > I installed the check-Tex option, but the results are not convincing
> > (at least in English). The suggestion are really poor.
> > Is there any way to install a more efficient grammar checker?
> > To circumvent the problem, I used to generate a rtf file and then to
> > use freeoffice which let me use a grammar checker like LT.
> > However, the generation of the rtf file is really problematic for a 
> > scientific document (for example, I have to remove the section,
> > subsection, etc..).
> > 
> > Some suggestions?
> 
> Last century I tried MSWord's grammar checker. I found it a great idea
> impossible to implement. It would often let fly sentences with a wrong
> word, and worse yet, it would flag lots of sentences that any author
> would feel good about writing.
> 
> I think that, once you get past absolutely horrible grammar, grammar
> checking becomes nothing but frustration.
> 
> I mentioned MSWord, which is obviously bad software, but I really think
> it's impossible to implement a useful grammar checker with the current
> state of AI. Wait another 10 years and perhaps grammar checkers will
> learn how we authors talk, and base checking on that.

Patrick, take a look at the old ticket (but with recent discussion):

https://www.lyx.org/trac/ticket/4878

Please feel free to join the discussion. As for if there is a way for a
more effective grammar checker, you might like comment:9 on that ticket.
Note, however, that it is only for English.

Steve, I agree with you for the most part. Sometimes, though, the
grammar checker catches simple mistakes that my eyes do not. I can read
a sentence 10 times and somehow not catch a singular/plural mismatch. I
have found it helpful [1] to read my paper backwards [2] in order to
catch certain types of errors.

Scott


[1] Thanks to my high school teacher Mrs. Coulter for this suggestion!

[2] I originally had "backwords". Luckily I read this sentence backwards :)


signature.asc
Description: PGP signature


Re: Grammar checking

2017-08-22 Thread Steve Litt
On Tue, 22 Aug 2017 15:35:38 +0200
"Patrick Dupre"  wrote:

> Hello,
> 
> lyx offers a language checker, but not a grammar checker.
> I installed the check-Tex option, but the results are not convincing
> (at least in English). The suggestion are really poor.
> Is there any way to install a more efficient grammar checker?
> To circumvent the problem, I used to generate a rtf file and then to
> use freeoffice which let me use a grammar checker like LT.
> However, the generation of the rtf file is really problematic for a 
> scientific document (for example, I have to remove the section,
> subsection, etc..).
> 
> Some suggestions?

Last century I tried MSWord's grammar checker. I found it a great idea
impossible to implement. It would often let fly sentences with a wrong
word, and worse yet, it would flag lots of sentences that any author
would feel good about writing.

I think that, once you get past absolutely horrible grammar, grammar
checking becomes nothing but frustration.

I mentioned MSWord, which is obviously bad software, but I really think
it's impossible to implement a useful grammar checker with the current
state of AI. Wait another 10 years and perhaps grammar checkers will
learn how we authors talk, and base checking on that.

SteveT


Re: Missing Rnw(knitr) module

2017-08-22 Thread John Kane
Just as a minor follow-up the knitr.module is in usr/share/lux/layouts. So
I have knitr installed in R and the knitr.module in LyX.

Presumably I'm missing something obvious but what?

On 22 August 2017 at 11:14, John Kane  wrote:

> Yes. I really have no idea of where some of those ppa's have come from and
> I may just go in and wipe out anything that's in the file and hope for the
> best.  I can always replace those that I really need.(I hope.)
>
> Someone else may have another idea that may help also.
>
> I did discover that I can compile a LaTeX file with knitr---which does not
> work but at least it does not bomb. However, I have no idea what that
> means.
>
> On 22 August 2017 at 10:55, Jean-Marc Lasgouttes 
> wrote:
>
>> Le 22/08/2017 à 16:35, John Kane a écrit :
>>
>>> /sudo apt update
>>> /
>>> Yes, ran it just before I ran the code listed above. I don't remember
>>> any warnings but I had someone talking to me as I did it and so I may have
>>> missed one.
>>>
>>> Bloody hell! I missed the equivalent of an atom bomb going off.
>>> Unfortunately I am not sure how to start to approach this for a solution.
>>>
>>
>> That looks bad indeed... I am not sure why you need all these ppas, I
>> would try to remove them unless you are sure that you should use them.
>>
>> I cannot really advise you on how to fix this kind of mess. It is
>> probably 2 or 3 commands, but which ones?
>>
>> JMarc
>>
>>
>
>
> --
> John Kane
> Kingston ON Canada
>



-- 
John Kane
Kingston ON Canada


Re: Missing Rnw(knitr) module

2017-08-22 Thread John Kane
Yes. I really have no idea of where some of those ppa's have come from and
I may just go in and wipe out anything that's in the file and hope for the
best.  I can always replace those that I really need.(I hope.)

Someone else may have another idea that may help also.

I did discover that I can compile a LaTeX file with knitr---which does not
work but at least it does not bomb. However, I have no idea what that
means.

On 22 August 2017 at 10:55, Jean-Marc Lasgouttes  wrote:

> Le 22/08/2017 à 16:35, John Kane a écrit :
>
>> /sudo apt update
>> /
>> Yes, ran it just before I ran the code listed above. I don't remember any
>> warnings but I had someone talking to me as I did it and so I may have
>> missed one.
>>
>> Bloody hell! I missed the equivalent of an atom bomb going off.
>> Unfortunately I am not sure how to start to approach this for a solution.
>>
>
> That looks bad indeed... I am not sure why you need all these ppas, I
> would try to remove them unless you are sure that you should use them.
>
> I cannot really advise you on how to fix this kind of mess. It is probably
> 2 or 3 commands, but which ones?
>
> JMarc
>
>


-- 
John Kane
Kingston ON Canada


Re: Missing Rnw(knitr) module

2017-08-22 Thread John Kane
*sudo apt update*
Yes, ran it just before I ran the code listed above. I don't remember any
warnings but I had someone talking to me as I did it and so I may have
missed one.

Bloody hell! I missed the equivalent of an atom bomb going off.
Unfortunately I am not sure how to start to approach this for a solution.

These errors do not look good.  Am I running into coflicting ppa's

Err:12 http://ppa.launchpad.net/jonathonf/texlive-2016/ubuntu zesty Release
  404  Not Found
Err:13 https://cran.utstat.utoronto.ca//bin/linux/ubuntu zesty/ Release
  server certificate verification failed. CAfile:
/etc/ssl/certs/ca-certificates.crt
CRLfile: none
Err:14 http://ppa.launchpad.net/jonathonf/texlive/ubuntu zesty Release
  404  Not Found

Nor does this

E: The repository 'https://launchpad.net/~rkward-devel/+archive/ubuntu/
rkward-stable-cran

zesty Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore
disabled by default.

#---
-###
rkrideau@jrk-T420:~$ sudo apt update
[sudo] password for jrkrideau:
Get:1 http://archive.ubuntu.com/ubuntu zesty-updates InRelease [89.2 kB]
Get:2 http://security.ubuntu.com/ubuntu zesty-security InRelease [89.2
kB]
Ign:3 http://ppa.launchpad.net/jonathonf/texlive-2016/ubuntu zesty
InRelease
Hit:4 http://archive.canonical.com/ubuntu zesty
InRelease
Ign:5 http://ppa.launchpad.net/jonathonf/texlive/ubuntu zesty
InRelease
Hit:6 http://ppa.launchpad.net/lyx-devel/release/ubuntu zesty
InRelease
Hit:7 http://archive.ubuntu.com/ubuntu zesty InRelease

Hit:8 http://ppa.launchpad.net/marutter/rrutter/ubuntu zesty InRelease
Ign:9 https://cran.utstat.utoronto.ca//bin/linux/ubuntu zesty/ InRelease
Get:10 http://archive.ubuntu.com/ubuntu zesty-backports InRelease [89.2 kB]
Hit:11 http://ppa.launchpad.net/rkward-devel/rkward-stable-cran/ubuntu
zesty InRelease
Err:12 http://ppa.launchpad.net/jonathonf/texlive-2016/ubuntu zesty Release
  404  Not Found
Err:13 https://cran.utstat.utoronto.ca//bin/linux/ubuntu zesty/ Release
  server certificate verification failed. CAfile:
/etc/ssl/certs/ca-certificates.crt
CRLfile: none
Err:14 http://ppa.launchpad.net/jonathonf/texlive/ubuntu zesty Release
  404  Not Found
Ign:15 https://launchpad.net/~rkward-devel/+archive/ubuntu/rkward-
stable-cran

zesty InRelease
Get:16 http://archive.ubuntu.com/ubuntu zesty-updates/main amd64 DEP-11
Metadata [52.7 kB]
Get:17 http://archive.ubuntu.com/ubuntu zesty-updates/main DEP-11 64x64
Icons [26.3 kB]
Get:18 http://archive.ubuntu.com/ubuntu zesty-updates/universe amd64 DEP-11
Metadata [82.7 kB]
Get:19 http://archive.ubuntu.com/ubuntu zesty-updates/universe DEP-11 64x64
Icons [90.1 kB]
Get:20 http://archive.ubuntu.com/ubuntu zesty-updates/multiverse amd64
DEP-11 Metadata [5,840 B]
Get:21 http://security.ubuntu.com/ubuntu zesty-security/main amd64 DEP-11
Metadata [12.5 kB]
Get:22 http://security.ubuntu.com/ubuntu zesty-security/universe amd64
DEP-11 Metadata [20.7 kB]
Get:23 http://security.ubuntu.com/ubuntu zesty-security/universe DEP-11
64x64 Icons [36.5 kB]
Err:24 https://launchpad.net/~rkward-devel/+archive/ubuntu/rkward-
stable-cran

zesty Release
  404  Not Found
Get:25 http://archive.ubuntu.com/ubuntu zesty-backports/universe amd64
DEP-11 Metadata [5,140 B]
Reading package lists... Done
E: The repository 'http://ppa.launchpad.net/jonathonf/texlive-2016/ubuntu
zesty Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore
disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration
details.
E: The repository 'https://cran.utstat.utoronto.ca//bin/linux/ubuntu zesty/
Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore
disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration
details.
E: The repository 'http://ppa.launchpad.net/jonathonf/texlive/ubuntu zesty
Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore
disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration
details.
E: The repository 'https://launchpad.net/~rkward-devel/+archive/ubuntu/
rkward-stable-cran

zesty Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore
disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration
details.
jrkrideau@jrk-T420:~$


On 22 August 2017 at 10:35, John Kane  wrote:

>
> *sudo apt update*
> Yes, ran 

Grammar checking

2017-08-22 Thread Patrick Dupre
Hello,

lyx offers a language checker, but not a grammar checker.
I installed the check-Tex option, but the results are not convincing (at least
in English). The suggestion are really poor.
Is there any way to install a more efficient grammar checker?
To circumvent the problem, I used to generate a rtf file and then to use
freeoffice which let me use a grammar checker like LT.
However, the generation of the rtf file is really problematic for a 
scientific document (for example, I have to remove the section, subsection, 
etc..).

Some suggestions?

Thank.

===
 Patrick DUPRÉ | | email: pdu...@gmx.com
 Laboratoire de Physico-Chimie de l'Atmosphère | |
 Université du Littoral-Côte d'Opale   | |
 Tel.  (33)-(0)3 28 23 76 12   | | Fax: 03 28 65 82 44
 189A, avenue Maurice Schumann | | 59140 Dunkerque, France
===


Re: Missing Rnw(knitr) module

2017-08-22 Thread Jean-Marc Lasgouttes

Le 22/08/2017 à 14:31, John Kane a écrit :
But, blast it, I want knitr back. I have a good number of files with 
knitr code and I would hate to have to modify them.  But, at least, we 
now know that LyX is talking to R which is reassuring.


What is your operating system?

JMarc


Re: Missing Rnw(knitr) module

2017-08-22 Thread John Kane
Thanks  Jean-Marc.

I have reconfigured two or three times.
.
I have not thought of sweave in years.  A plain file, that is no R code,
compiles with sweave loaded. A small knitr file gives an error but that is
to be expected. I'll have to cobble together a sweave example and see what
happens. It should run okay.

I stole a bit of sweave code from Friedrich Leisch's article in R News
https://cran.r-project.org/doc/Rnews/Rnews_2002-3.pdf and it compiles
although not perfectly which is not surprising. It was just a quick and
dirty test.

But, blast it, I want knitr back. I have a good number of files with knitr
code and I would hate to have to modify them.  But, at least, we now know
that LyX is talking to R which is reassuring.

Thanks again,

On 22 August 2017 at 07:51, Jean-Marc Lasgouttes  wrote:

> Le 22/08/2017 à 13:01, John Kane a écrit :
>
>> I recently upgraded to LyX 2.2.3 as I am not doing any production work at
>> the moment and it seemed a good time to explore some of the new features.
>> I have a problem with the Rnw(knitr) module in LyX. LyX is insisting that
>> the knitr package does not exist and the compile aborts.
>> R says knitr is installed and can be loaded. A closer inspection of the
>> “Available” modules list shows that Rnw(knitr) is not listed.
>> If I remove the Rnw(knitr) module from the selected list the file
>> compiles normally.
>>
>
> Two things to try:
> - try to run Tools>Reconfigure
> - check whether Rnw(sweave) (which is bundeled with R) works better.
>
> JMarc
>



-- 
John Kane
Kingston ON Canada


Re: Missing Rnw(knitr) module

2017-08-22 Thread Jean-Marc Lasgouttes

Le 22/08/2017 à 13:01, John Kane a écrit :
I recently upgraded to LyX 2.2.3 as I am not doing any production work 
at the moment and it seemed a good time to explore some of the new features.
I have a problem with the Rnw(knitr) module in LyX. LyX is insisting 
that the knitr package does not exist and the compile aborts.
R says knitr is installed and can be loaded. A closer inspection of the 
“Available” modules list shows that Rnw(knitr) is not listed.
If I remove the Rnw(knitr) module from the selected list the file 
compiles normally.


Two things to try:
- try to run Tools>Reconfigure
- check whether Rnw(sweave) (which is bundeled with R) works better.

JMarc


Missing Rnw(knitr) module

2017-08-22 Thread John Kane
I recently upgraded to LyX 2.2.3 as I am not doing any production work at the 
moment and it seemed a good time to explore some of the new features.I have a 
problem with the Rnw(knitr) module in LyX. LyX is insisting that the knitr 
package does not exist and the compile aborts.R says knitr is installed and can 
be loaded. A closer inspection of the “Available” modules list shows that 
Rnw(knitr) is not listed. If I remove the Rnw(knitr) module from the selected 
list the file compiles normally.My default template loads the Rnw(knitr) module 
automatically and if I click on the knitr module name in the “Selected” window 
I get the standard explanation of what it is in the window below.Any 
suggestions? Thanks