Re: [R-pkg-devel] confusion over spellchecking

2024-03-13 Thread Ivan Krylov via R-package-devel
В Sun, 10 Mar 2024 13:55:43 -0400
Ben Bolker  пишет:

> I am working on a package and can't seem to get rid of a NOTE about
> 
> Possibly misspelled words in DESCRIPTION:
>glmmTMB (10:88)
>lme (10:82)
> 
> on win-builder.

Do you have these words anywhere else in the package (e.g. in the Rd
files)? It turns out that R has a special environment variable that
makes it ignore custom dictionaries specifically for DESCRIPTION:

>>## Allow providing package defaults but make this controllable via
>>##   _R_ASPELL_USE_DEFAULTS_FOR_PACKAGE_DESCRIPTION_
>>## to safeguard against possible mis-use for CRAN incoming checks.

I cannot see it used anywhere under the trunk/CRAN subdirectory in the
developer.r-project.org Subversion repo, but it could be set somewhere
else on Win-Builder.

-- 
Best regards,
Ivan

__
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel


Re: [R-pkg-devel] confusion over spellchecking

2024-03-11 Thread Diego Hernangómez Herrero
As per 'The DESCRIPTION file'[1]:


As with the ‘Title’ field, 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.


Enclose that words in single quote, it should work.

[1] Writing R Extensions
https://cran.r-project.org/doc/manuals/R-exts.html#The-DESCRIPTION-file

Have a nice day!


El El dom, 10 mar 2024 a las 18:56, Ben Bolker  escribió:

>
>I am working on a package and can't seem to get rid of a NOTE about
>
> Possibly misspelled words in DESCRIPTION:
>glmmTMB (10:88)
>lme (10:82)
>
> on win-builder.
>
> I have set export _R_CHECK_CRAN_INCOMING_USE_ASPELL_=TRUE locally, and
> have tried to set up the .aspell defaults as specified by Dirk
> Eddelbuettel in  his 2017 blog post
> 
>
>I get no spelling NOTEs locally or on GH actions.
>
>   The aspell machinery is here:
>
> https://github.com/bbolker/reformulas/tree/main/.aspell
>
> Following Dirk's blog post, here's what's in those files:
>
> $ cat defaults.R
> Rd_files <- vignettes <- R_files <- description <-
>  list(encoding = "UTF-8",
>   language = "en",
>   dictionaries = c("en_stats", "reformulas"))
>
> $ r -p -e 'readRDS("reformulas.rds")'
> [1] "glmmTMB" "lme"
>
>
>In the end I think I'm going to suck it up and put those words in
> quotation marks in the definition, but it feels like I *should* be able
> to have them ignored?
>
>I have three questions:
>
>   (1) am I missing something in how this should be set up?
>   (2) is any of this machinery documented anywhere official? (I couldn't
> find the string "spell" anywhere in _Writing R Extensions_ or the CRAN
> repository policy
>   (3) If the answer to #2 is 'no', could/should it be?
>
> __
> R-package-devel@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-package-devel
>

[[alternative HTML version deleted]]

__
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel


[R-pkg-devel] confusion over spellchecking

2024-03-10 Thread Ben Bolker



  I am working on a package and can't seem to get rid of a NOTE about

Possibly misspelled words in DESCRIPTION:
  glmmTMB (10:88)
  lme (10:82)

on win-builder.

I have set export _R_CHECK_CRAN_INCOMING_USE_ASPELL_=TRUE locally, and 
have tried to set up the .aspell defaults as specified by Dirk 
Eddelbuettel in  his 2017 blog post 



  I get no spelling NOTEs locally or on GH actions.

 The aspell machinery is here:

https://github.com/bbolker/reformulas/tree/main/.aspell

Following Dirk's blog post, here's what's in those files:

$ cat defaults.R
Rd_files <- vignettes <- R_files <- description <-
list(encoding = "UTF-8",
 language = "en",
 dictionaries = c("en_stats", "reformulas"))

$ r -p -e 'readRDS("reformulas.rds")'
[1] "glmmTMB" "lme"


  In the end I think I'm going to suck it up and put those words in 
quotation marks in the definition, but it feels like I *should* be able 
to have them ignored?


  I have three questions:

 (1) am I missing something in how this should be set up?
 (2) is any of this machinery documented anywhere official? (I couldn't 
find the string "spell" anywhere in _Writing R Extensions_ or the CRAN 
repository policy

 (3) If the answer to #2 is 'no', could/should it be?

__
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel