Skip to content

[R-pkg-devel] Is it possible to protect a word from the spell checker?

9 messages · Duncan Murdoch, Hana Sevcikova, Martin Maechler +4 more

#
On 01/03/2016 11:47 AM, Michael Dewey wrote:
I think so.  See the discussion of the .aspell directory in ?"aspell-utils".

Duncan Murdoch
#
If it's in the DESCRIPTION file put the word into quotes.
Hana
On 01/03/2016 08:47, Michael Dewey wrote:
#
> If it's in the DESCRIPTION file put the word into quotes.
    > Hana

Indeed, thank you Hana!

To add - embarrassingly I've only learned this about a week ago -
they need to be *single* quotes (as used 'here', they are also
called 'apostroph') and *not* double quotes.

Martin
> On 01/03/2016 08:47, Michael Dewey wrote:
>> The spell checker is correct they are not correctly spelled English
    >> words but names. I searched the Writing R Extensions manual but did not
    >> find any solution. I know it is only a NOTE not more serious.
#
Indeed, from Writing R Extensions:

"double quotes should be used for quotations (including titles of books 
and articles), and single quotes for non-English usage, including names 
of other packages and external software."

Best,
Uwe
On 02.03.2016 09:53, Martin Maechler wrote:
4 days later
#
Thanks to all. I find it quite reassuring that even someone so steeped 
in R is still finding new things to learn, it gives me hope.
On 02/03/2016 11:40, Uwe Ligges wrote:

  
    
  
#
Is there a minimum length req for the single quote spell checker
firewall? I've been putting 'API' in proper single quotes and it
always gets flagged.
On Sun, Mar 6, 2016 at 11:08 AM, Michael Dewey <lists at dewey.myzen.co.uk> wrote:
#
On 07.03.2016 03:14, boB Rudis wrote:
You do not need toout everything within qtuotes.
There are humans looking at the check result who know that the spell 
checker does not know some words. If a function foo() or a package 'pkg' 
are not typeset correctly (i.e. without parantheses or quotes, 
respectively), we see this quickly using the spellchecker. But the 
spellchecker is actually intended for spell checking. ;-)

Best,
Uwe Ligges
#
I have a fair number of medical words and acronyms in my icd9 package
and found aspell to be very useful. For an example, look in the icd10
branch in github at https://github.com/jackwasey/icd9/tree/icd10 .
Look in .aspell/ and R/generate_spelling.R.

On Tue, Mar 1, 2016 at 12:29 PM, Duncan Murdoch
<murdoch.duncan at gmail.com> wrote: