Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Authors@R disappears with desc_normalize() #80

Closed
maelle opened this issue Dec 18, 2018 · 9 comments
Closed

Authors@R disappears with desc_normalize() #80

maelle opened this issue Dec 18, 2018 · 9 comments
Labels
bug an unexpected problem or unintended behavior

Comments

@maelle
Copy link
Contributor

maelle commented Dec 18, 2018

download.file("https://raw.githubusercontent.com/ropensci/codemetar/master/DESCRIPTION",
          "thedescription")
readLines("thedescription")
#>   [1] "Package: codemetar"                                                                
#>   [2] "Type: Package"                                                                     
#>   [3] "Title: Generate 'CodeMeta' Metadata for R Packages"                                
#>   [4] "Version: 0.1.6"                                                                    
#>   [5] "Authors@R: "                                                                       
#>   [6] "    c(person(given = \"Carl\","                                                    
#>   [7] "             family = \"Boettiger\","                                              
#>   [8] "             role = c(\"aut\", \"cre\", \"cph\"),"                                 
#>   [9] "             email = \"[email protected]\","                                      
#>  [10] "             comment = c(ORCID = \"0000-0002-1642-628X\")),"                       
#>  [11] "      person(given = \"Anna\","                                                    
#>  [12] "             family = \"Krystalli\","                                              
#>  [13] "             role = c(\"rev\", \"ctb\"),"                                          
#>  [14] "             comment = c(ORCID = \"0000-0002-2378-4915\")),"                       
#>  [15] "      person(given = \"Toph\","                                                    
#>  [16] "             family = \"Allen\","                                                  
#>  [17] "             role = \"rev\","                                                      
#>  [18] "             comment = c(ORCID = \"0000-0003-4580-091X\")),"                       
#>  [19] "      person(given = \"Maëlle\","                                                 
#>  [20] "             family = \"Salmon\","                                                 
#>  [21] "             role = c(\"ctb\", \"aut\"),"                                          
#>  [22] "             comment = c(ORCID = \"0000-0002-2815-0399\")),"                       
#>  [23] "      person(given = \"rOpenSci\","                                                
#>  [24] "             role = \"fnd\","                                                      
#>  [25] "             comment = \"https://ropensci.org/\"),"                                
#>  [26] "      person(given = \"Katrin\","                                                  
#>  [27] "             family = \"Leinweber\","                                              
#>  [28] "             role = \"ctb\","                                                      
#>  [29] "             comment = c(ORCID = \"0000-0001-5135-5758\")),"                       
#>  [30] "      person(given = \"Noam\","                                                    
#>  [31] "             family = \"Ross\","                                                   
#>  [32] "             role = \"ctb\","                                                      
#>  [33] "             comment = c(ORCID = \"0000-0002-2136-0000\")),"                       
#>  [34] "      person(given = \"Arfon\","                                                   
#>  [35] "             family = \"Smith\","                                                  
#>  [36] "             role = \"ctb\"),"                                                     
#>  [37] "      person(given = \"Jeroen\","                                                  
#>  [38] "             family = \"Ooms\","                                                   
#>  [39] "             role = \"ctb\","                                                      
#>  [40] "             comment = c(ORCID = \"0000-0002-4035-0289\")),"                       
#>  [41] "      person(given = \"Sebastian\","                                               
#>  [42] "             family = \"Meyer\","                                                  
#>  [43] "             role = \"ctb\","                                                      
#>  [44] "             comment = c(ORCID = \"0000-0002-1791-9449\")),"                       
#>  [45] "      person(given = \"Michael\","                                                 
#>  [46] "             family = \"Rustler\","                                                
#>  [47] "             role = \"ctb\","                                                      
#>  [48] "             comment = c(ORCID = \"0000-0003-0647-7726\")),"                       
#>  [49] "      person(given = \"Hauke\","                                                   
#>  [50] "             family = \"Sonnenberg\","                                             
#>  [51] "             role = \"ctb\","                                                      
#>  [52] "             comment = c(ORCID = \"0000-0001-9134-2871\"))"                        
#>  [53] "      )"                                                                           
#>  [54] "Description: The 'Codemeta' Project defines a 'JSON-LD' format for describing"     
#>  [55] "  software metadata, as detailed at <https://codemeta.github.io>. This package"    
#>  [56] "  provides utilities to generate, parse, and modify 'codemeta.json' files "        
#>  [57] "  automatically for R packages, as well as tools and examples for working with"    
#>  [58] "  'codemeta.json' 'JSON-LD' more generally."                                       
#>  [59] "License: GPL-3"                                                                    
#>  [60] "URL: https://github.com/ropensci/codemetar, https://ropensci.github.io/codemetar"  
#>  [61] "BugReports: https://github.com/ropensci/codemetar/issues"                          
#>  [62] "Encoding: UTF-8"                                                                   
#>  [63] "LazyData: true"                                                                    
#>  [64] "RoxygenNote: 6.1.0.9000"                                                           
#>  [65] "Depends: R (>= 3.0.0)"                                                             
#>  [66] "Imports: "                                                                         
#>  [67] "    jsonlite (>= 1.3),"                                                            
#>  [68] "    jsonld,"                                                                       
#>  [69] "    git2r,"                                                                        
#>  [70] "    pkgbuild,"                                                                     
#>  [71] "    memoise,"                                                                      
#>  [72] "    methods,"                                                                      
#>  [73] "    stats,"                                                                        
#>  [74] "    stringi,"                                                                      
#>  [75] "    readr,"                                                                        
#>  [76] "    desc,"                                                                         
#>  [77] "    usethis,"                                                                      
#>  [78] "    whisker,"                                                                      
#>  [79] "    tibble,"                                                                       
#>  [80] "    crul,"                                                                         
#>  [81] "    gh,"                                                                           
#>  [82] "    stringr,"                                                                      
#>  [83] "    sessioninfo,"                                                                  
#>  [84] "    purrr,"                                                                        
#>  [85] "    curl,"                                                                         
#>  [86] "    commonmark,"                                                                   
#>  [87] "    xml2,"                                                                         
#>  [88] "    magrittr,"                                                                     
#>  [89] "    glue"                                                                          
#>  [90] "Suggests: "                                                                        
#>  [91] "    testthat,"                                                                     
#>  [92] "    jsonvalidate,"                                                                 
#>  [93] "    covr,"                                                                         
#>  [94] "    knitr,"                                                                        
#>  [95] "    rmarkdown,"                                                                    
#>  [96] "    dplyr (>= 0.7.0),"                                                             
#>  [97] "    printr"                                                                        
#>  [98] "VignetteBuilder: knitr"                                                            
#>  [99] "X-schema.org-keywords: metadata, codemeta, ropensci, citation, credit, linked-data"
#> [100] "X-schema.org-isPartOf: https://ropensci.org"
desc::desc_normalize(file = "thedescription")
#> Type: Package
#> Package: codemetar
#> Title: Generate 'CodeMeta' Metadata for R Packages
#> Version: 0.1.6
#> Authors@R (parsed):
#>     * Carl Boettiger <[email protected]> [aut, cre, cph] (<https://orcid.org/0000-0002-1642-628X>)
#>     * Anna Krystalli [rev, ctb] (<https://orcid.org/0000-0002-2378-4915>)
#>     * Toph Allen [rev] (<https://orcid.org/0000-0003-4580-091X>)
#>     * Maëlle Salmon [ctb, aut] (<https://orcid.org/0000-0002-2815-0399>)
#>     * rOpenSci [fnd] (https://ropensci.org/)
#>     * Katrin Leinweber [ctb] (<https://orcid.org/0000-0001-5135-5758>)
#>     * Noam Ross [ctb] (<https://orcid.org/0000-0002-2136-0000>)
#>     * Arfon Smith [ctb]
#>     * Jeroen Ooms [ctb] (<https://orcid.org/0000-0002-4035-0289>)
#>     * Sebastian Meyer [ctb] (<https://orcid.org/0000-0002-1791-9449>)
#>     * Michael Rustler [ctb] (<https://orcid.org/0000-0003-0647-7726>)
#>     * Hauke Sonnenberg [ctb] (<https://orcid.org/0000-0001-9134-2871>)
#> Description: The 'Codemeta' Project defines a 'JSON-LD' format for
#>     describing software metadata, as detailed at
#>     <https://codemeta.github.io>. This package provides utilities to
#>     generate, parse, and modify 'codemeta.json' files automatically for R
#>     packages, as well as tools and examples for working with
#>     'codemeta.json' 'JSON-LD' more generally.
#> License: GPL-3
#> URL: https://github.com/ropensci/codemetar,
#>     https://ropensci.github.io/codemetar
#> BugReports: https://github.com/ropensci/codemetar/issues
#> Depends:
#>     R (>= 3.0.0)
#> Imports:
#>     commonmark,
#>     crul,
#>     curl,
#>     desc,
#>     gh,
#>     git2r,
#>     glue,
#>     jsonld,
#>     jsonlite (>= 1.3),
#>     magrittr,
#>     memoise,
#>     methods,
#>     pkgbuild,
#>     purrr,
#>     readr,
#>     sessioninfo,
#>     stats,
#>     stringi,
#>     stringr,
#>     tibble,
#>     usethis,
#>     whisker,
#>     xml2
#> Suggests:
#>     covr,
#>     dplyr (>= 0.7.0),
#>     jsonvalidate,
#>     knitr,
#>     printr,
#>     rmarkdown,
#>     testthat
#> VignetteBuilder:
#>     knitr
#> Encoding: UTF-8
#> LazyData: true
#> RoxygenNote: 6.1.0.9000
#> X-schema.org-isPartOf: https://ropensci.org
#> X-schema.org-keywords: metadata, codemeta, ropensci, citation, credit,
#>     linked-data
readLines("thedescription")
#>  [1] "Type: Package"                                                            
#>  [2] "Package: codemetar"                                                       
#>  [3] "Title: Generate 'CodeMeta' Metadata for R Packages"                       
#>  [4] "Version: 0.1.6"                                                           
#>  [5] "Description: The 'Codemeta' Project defines a 'JSON-LD' format for"       
#>  [6] "    describing software metadata, as detailed at"                         
#>  [7] "    <https://codemeta.github.io>. This package provides utilities to"     
#>  [8] "    generate, parse, and modify 'codemeta.json' files automatically for R"
#>  [9] "    packages, as well as tools and examples for working with"             
#> [10] "    'codemeta.json' 'JSON-LD' more generally."                            
#> [11] "License: GPL-3"                                                           
#> [12] "URL: https://github.com/ropensci/codemetar,"                              
#> [13] "    https://ropensci.github.io/codemetar"                                 
#> [14] "BugReports: https://github.com/ropensci/codemetar/issues"                 
#> [15] "Depends: "                                                                
#> [16] "    R (>= 3.0.0)"                                                         
#> [17] "Imports: "                                                                
#> [18] "    commonmark,"                                                          
#> [19] "    crul,"                                                                
#> [20] "    curl,"                                                                
#> [21] "    desc,"                                                                
#> [22] "    gh,"                                                                  
#> [23] "    git2r,"                                                               
#> [24] "    glue,"                                                                
#> [25] "    jsonld,"                                                              
#> [26] "    jsonlite (>= 1.3),"                                                   
#> [27] "    magrittr,"                                                            
#> [28] "    memoise,"                                                             
#> [29] "    methods,"                                                             
#> [30] "    pkgbuild,"                                                            
#> [31] "    purrr,"                                                               
#> [32] "    readr,"                                                               
#> [33] "    sessioninfo,"                                                         
#> [34] "    stats,"                                                               
#> [35] "    stringi,"                                                             
#> [36] "    stringr,"                                                             
#> [37] "    tibble,"                                                              
#> [38] "    usethis,"                                                             
#> [39] "    whisker,"                                                             
#> [40] "    xml2"                                                                 
#> [41] "Suggests: "                                                               
#> [42] "    covr,"                                                                
#> [43] "    dplyr (>= 0.7.0),"                                                    
#> [44] "    jsonvalidate,"                                                        
#> [45] "    knitr,"                                                               
#> [46] "    printr,"                                                              
#> [47] "    rmarkdown,"                                                           
#> [48] "    testthat"                                                             
#> [49] "VignetteBuilder: "                                                        
#> [50] "    knitr"                                                                
#> [51] "Encoding: UTF-8"                                                          
#> [52] "LazyData: true"                                                           
#> [53] "RoxygenNote: 6.1.0.9000"                                                  
#> [54] "X-schema.org-isPartOf: https://ropensci.org"                              
#> [55] "X-schema.org-keywords: metadata, codemeta, ropensci, citation, credit,"   
#> [56] "    linked-data"

Created on 2018-12-18 by the reprex package (v0.2.1)

Session info
devtools::session_info()
#> - Session info ----------------------------------------------------------
#>  setting  value                       
#>  version  R version 3.5.0 (2018-04-23)
#>  os       Windows 10 x64              
#>  system   x86_64, mingw32             
#>  ui       RTerm                       
#>  language (EN)                        
#>  collate  English_United States.1252  
#>  ctype    English_United States.1252  
#>  tz       Europe/Paris                
#>  date     2018-12-18                  
#> 
#> - Packages --------------------------------------------------------------
#>  package     * version    date       lib source                        
#>  assertthat    0.2.0      2017-04-11 [1] CRAN (R 3.5.0)                
#>  backports     1.1.2      2017-12-13 [1] CRAN (R 3.5.0)                
#>  callr         3.1.0      2018-12-10 [1] CRAN (R 3.5.1)                
#>  cli           1.0.1      2018-09-25 [1] CRAN (R 3.5.0)                
#>  crayon        1.3.4      2017-09-16 [1] CRAN (R 3.5.0)                
#>  desc          1.2.0      2018-12-18 [1] Github (r-lib/desc@42b9578)   
#>  devtools      2.0.1      2018-10-26 [1] CRAN (R 3.5.1)                
#>  digest        0.6.18     2018-10-10 [1] CRAN (R 3.5.1)                
#>  evaluate      0.12       2018-10-09 [1] CRAN (R 3.5.1)                
#>  fs            1.2.6      2018-08-23 [1] CRAN (R 3.5.1)                
#>  glue          1.3.0      2018-07-17 [1] CRAN (R 3.5.0)                
#>  highr         0.7        2018-06-09 [1] CRAN (R 3.5.0)                
#>  htmltools     0.3.6      2017-04-28 [1] CRAN (R 3.5.1)                
#>  knitr         1.21       2018-12-10 [1] CRAN (R 3.5.1)                
#>  magrittr      1.5        2014-11-22 [1] CRAN (R 3.5.0)                
#>  memoise       1.1.0      2017-04-21 [1] CRAN (R 3.5.0)                
#>  pkgbuild      1.0.2      2018-10-16 [1] CRAN (R 3.5.1)                
#>  pkgload       1.0.2      2018-10-29 [1] CRAN (R 3.5.1)                
#>  prettyunits   1.0.2      2015-07-13 [1] CRAN (R 3.5.0)                
#>  processx      3.2.1      2018-12-05 [1] CRAN (R 3.5.1)                
#>  ps            1.2.1      2018-11-06 [1] CRAN (R 3.5.1)                
#>  R6            2.3.0      2018-10-04 [1] CRAN (R 3.5.1)                
#>  Rcpp          1.0.0      2018-11-07 [1] CRAN (R 3.5.0)                
#>  remotes       2.0.2      2018-10-30 [1] CRAN (R 3.5.1)                
#>  rlang         0.3.0.1    2018-10-25 [1] CRAN (R 3.5.1)                
#>  rmarkdown     1.11       2018-12-08 [1] CRAN (R 3.5.1)                
#>  rprojroot     1.3-2      2018-01-03 [1] CRAN (R 3.4.3)                
#>  sessioninfo   1.1.1      2018-11-05 [1] CRAN (R 3.5.1)                
#>  stringi       1.2.4      2018-07-23 [1] local                         
#>  stringr       1.3.1      2018-05-10 [1] CRAN (R 3.5.0)                
#>  testthat      2.0.1      2018-10-13 [1] CRAN (R 3.5.1)                
#>  usethis       1.4.0.9000 2018-12-13 [1] Github (r-lib/usethis@923dd75)
#>  withr         2.1.2      2018-03-15 [1] CRAN (R 3.4.4)                
#>  xfun          0.4        2018-10-23 [1] CRAN (R 3.5.1)                
#>  yaml          2.2.0      2018-07-25 [1] CRAN (R 3.5.1)                
#> 
#> [1] C:/Users/Maelle/Documents/R/win-library/3.5
#> [2] C:/Program Files/R/R-3.5.0/library

Note that it does not happen with the example file below, so I'm not sure desc is the actual culprit.

file.copy(system.file("DESCRIPTION2",
                      package = "desc"),
          "thedescription")
#> [1] TRUE
readLines("thedescription")
#>  [1] "Package: roxygen2"                                                                           
#>  [2] "Title: In-Source Documentation for R"                                                        
#>  [3] "Description: A 'Doxygen'-like in-source documentation system"                                
#>  [4] "    for Rd, collation, and 'NAMESPACE' files."                                               
#>  [5] "URL: https://github.com/klutometis/roxygen"                                                  
#>  [6] "Version: 4.1.1.9000"                                                                         
#>  [7] "License: GPL (>= 2)"                                                                         
#>  [8] "Authors@R: c("                                                                               
#>  [9] "    person(\"Hadley\", \"Wickham\",, \"[email protected]\", c(\"aut\", \"cre\", \"cph\")),"
#> [10] "    person(\"Peter\", \"Danenberg\",, \"[email protected]\", c(\"aut\", \"cph\")),"            
#> [11] "    person(\"Manuel\", \"Eugster\", role = c(\"aut\", \"cph\")),"                            
#> [12] "    person(\"RStudio\", role = \"cph\")"                                                     
#> [13] "    )"                                                                                       
#> [14] "Depends:"                                                                                    
#> [15] "    R (>= 3.0.2)"                                                                            
#> [16] "Imports:"                                                                                    
#> [17] "    stringr (>= 0.5),"                                                                       
#> [18] "    brew,"                                                                                   
#> [19] "    digest,"                                                                                 
#> [20] "    methods,"                                                                                
#> [21] "    Rcpp (>= 0.11.0)"                                                                        
#> [22] "Suggests:"                                                                                   
#> [23] "    testthat (>= 0.8.0),"                                                                    
#> [24] "    knitr"                                                                                   
#> [25] "VignetteBuilder: knitr"                                                                      
#> [26] "LinkingTo: Rcpp"                                                                             
#> [27] "Collate:"                                                                                    
#> [28] "    'RcppExports.R'"                                                                         
#> [29] "    'alias.R'"                                                                               
#> [30] "    'description.R'"                                                                         
#> [31] "    'family.R'"                                                                              
#> [32] "    'inherit-params.R'"                                                                      
#> [33] "    'minidesc.R'"                                                                            
#> [34] "    'object-defaults.R'"                                                                     
#> [35] "    'object-from-call.R'"                                                                    
#> [36] "    'object.R'"                                                                              
#> [37] "    'order-params.R'"                                                                        
#> [38] "    'parse-preref.R'"                                                                        
#> [39] "    'parse-registry.R'"                                                                      
#> [40] "    'parse.R'"                                                                               
#> [41] "    'rc.R'"                                                                                  
#> [42] "    'rd-escape.R'"                                                                           
#> [43] "    'rd-file-api.R'"                                                                         
#> [44] "    'rd-parse.R'"                                                                            
#> [45] "    'rd-tag-api.R'"                                                                          
#> [46] "    'roclet-collate.R'"                                                                      
#> [47] "    'roclet-namespace.R'"                                                                    
#> [48] "    'roclet-rd.R'"                                                                           
#> [49] "    'roclet-vignette.R'"                                                                     
#> [50] "    'roclet.R'"                                                                              
#> [51] "    'roxygen.R'"                                                                             
#> [52] "    'roxygenize.R'"                                                                          
#> [53] "    's3.R'"                                                                                  
#> [54] "    'safety.R'"                                                                              
#> [55] "    'source.R'"                                                                              
#> [56] "    'template.R'"                                                                            
#> [57] "    'topic-name.R'"                                                                          
#> [58] "    'topo-sort.R'"                                                                           
#> [59] "    'usage.R'"                                                                               
#> [60] "    'util-locale.R'"                                                                         
#> [61] "    'utils.R'"                                                                               
#> [62] "RoxygenNote: 4.1.1.9000"
desc::desc_normalize(file = "thedescription")
#> Package: roxygen2
#> Title: In-Source Documentation for R
#> Version: 4.1.1.9000
#> Authors@R (parsed):
#>     * Hadley Wickham <[email protected]> [aut, cre, cph]
#>     * Peter Danenberg <[email protected]> [aut, cph]
#>     * Manuel Eugster [aut, cph]
#>     * RStudio [cph]
#> Description: A 'Doxygen'-like in-source documentation system for Rd,
#>     collation, and 'NAMESPACE' files.
#> License: GPL (>= 2)
#> URL: https://github.com/klutometis/roxygen
#> Depends:
#>     R (>= 3.0.2)
#> Imports:
#>     brew,
#>     digest,
#>     methods,
#>     Rcpp (>= 0.11.0),
#>     stringr (>= 0.5)
#> Suggests:
#>     knitr,
#>     testthat (>= 0.8.0)
#> LinkingTo:
#>     Rcpp
#> VignetteBuilder:
#>     knitr
#> RoxygenNote: 4.1.1.9000
#> Collate:
#>     'RcppExports.R'
#>     'alias.R'
#>     'description.R'
#>     'family.R'
#>     'inherit-params.R'
#>     'minidesc.R'
#>     'object-defaults.R'
#>     'object-from-call.R'
#>     'object.R'
#>     'order-params.R'
#>     'parse-preref.R'
#>     'parse-registry.R'
#>     'parse.R'
#>     'rc.R'
#>     'rd-escape.R'
#>     'rd-file-api.R'
#>     'rd-parse.R'
#>     'rd-tag-api.R'
#>     'roclet-collate.R'
#>     'roclet-namespace.R'
#>     'roclet-rd.R'
#>     'roclet-vignette.R'
#>     'roclet.R'
#>     'roxygen.R'
#>     'roxygenize.R'
#>     's3.R'
#>     'safety.R'
#>     'source.R'
#>     'template.R'
#>     'topic-name.R'
#>     'topo-sort.R'
#>     'usage.R'
#>     'util-locale.R'
#>     'utils.R'
readLines("thedescription")
#>  [1] "Package: roxygen2"                                                   
#>  [2] "Title: In-Source Documentation for R"                                
#>  [3] "Version: 4.1.1.9000"                                                 
#>  [4] "Authors@R: "                                                         
#>  [5] "    c(person(given = \"Hadley\","                                    
#>  [6] "             family = \"Wickham\","                                  
#>  [7] "             role = c(\"aut\", \"cre\", \"cph\"),"                   
#>  [8] "             email = \"[email protected]\"),"                      
#>  [9] "      person(given = \"Peter\","                                     
#> [10] "             family = \"Danenberg\","                                
#> [11] "             role = c(\"aut\", \"cph\"),"                            
#> [12] "             email = \"[email protected]\"),"                          
#> [13] "      person(given = \"Manuel\","                                    
#> [14] "             family = \"Eugster\","                                  
#> [15] "             role = c(\"aut\", \"cph\")),"                           
#> [16] "      person(given = \"RStudio\","                                   
#> [17] "             role = \"cph\"))"                                       
#> [18] "Description: A 'Doxygen'-like in-source documentation system for Rd,"
#> [19] "    collation, and 'NAMESPACE' files."                               
#> [20] "License: GPL (>= 2)"                                                 
#> [21] "URL: https://github.com/klutometis/roxygen"                          
#> [22] "Depends:"                                                            
#> [23] "    R (>= 3.0.2)"                                                    
#> [24] "Imports:"                                                            
#> [25] "    brew,"                                                           
#> [26] "    digest,"                                                         
#> [27] "    methods,"                                                        
#> [28] "    Rcpp (>= 0.11.0),"                                               
#> [29] "    stringr (>= 0.5)"                                                
#> [30] "Suggests:"                                                           
#> [31] "    knitr,"                                                          
#> [32] "    testthat (>= 0.8.0)"                                             
#> [33] "LinkingTo: "                                                         
#> [34] "    Rcpp"                                                            
#> [35] "VignetteBuilder: "                                                   
#> [36] "    knitr"                                                           
#> [37] "RoxygenNote: 4.1.1.9000"                                             
#> [38] "Collate:"                                                            
#> [39] "    'RcppExports.R'"                                                 
#> [40] "    'alias.R'"                                                       
#> [41] "    'description.R'"                                                 
#> [42] "    'family.R'"                                                      
#> [43] "    'inherit-params.R'"                                              
#> [44] "    'minidesc.R'"                                                    
#> [45] "    'object-defaults.R'"                                             
#> [46] "    'object-from-call.R'"                                            
#> [47] "    'object.R'"                                                      
#> [48] "    'order-params.R'"                                                
#> [49] "    'parse-preref.R'"                                                
#> [50] "    'parse-registry.R'"                                              
#> [51] "    'parse.R'"                                                       
#> [52] "    'rc.R'"                                                          
#> [53] "    'rd-escape.R'"                                                   
#> [54] "    'rd-file-api.R'"                                                 
#> [55] "    'rd-parse.R'"                                                    
#> [56] "    'rd-tag-api.R'"                                                  
#> [57] "    'roclet-collate.R'"                                              
#> [58] "    'roclet-namespace.R'"                                            
#> [59] "    'roclet-rd.R'"                                                   
#> [60] "    'roclet-vignette.R'"                                             
#> [61] "    'roclet.R'"                                                      
#> [62] "    'roxygen.R'"                                                     
#> [63] "    'roxygenize.R'"                                                  
#> [64] "    's3.R'"                                                          
#> [65] "    'safety.R'"                                                      
#> [66] "    'source.R'"                                                      
#> [67] "    'template.R'"                                                    
#> [68] "    'topic-name.R'"                                                  
#> [69] "    'topo-sort.R'"                                                   
#> [70] "    'usage.R'"                                                       
#> [71] "    'util-locale.R'"                                                 
#> [72] "    'utils.R'"

Created on 2018-12-18 by the reprex package (v0.2.1)

Session info
devtools::session_info()
#> - Session info ----------------------------------------------------------
#>  setting  value                       
#>  version  R version 3.5.0 (2018-04-23)
#>  os       Windows 10 x64              
#>  system   x86_64, mingw32             
#>  ui       RTerm                       
#>  language (EN)                        
#>  collate  English_United States.1252  
#>  ctype    English_United States.1252  
#>  tz       Europe/Paris                
#>  date     2018-12-18                  
#> 
#> - Packages --------------------------------------------------------------
#>  package     * version    date       lib source                        
#>  assertthat    0.2.0      2017-04-11 [1] CRAN (R 3.5.0)                
#>  backports     1.1.2      2017-12-13 [1] CRAN (R 3.5.0)                
#>  callr         3.1.0      2018-12-10 [1] CRAN (R 3.5.1)                
#>  cli           1.0.1      2018-09-25 [1] CRAN (R 3.5.0)                
#>  crayon        1.3.4      2017-09-16 [1] CRAN (R 3.5.0)                
#>  desc          1.2.0      2018-12-18 [1] Github (r-lib/desc@42b9578)   
#>  devtools      2.0.1      2018-10-26 [1] CRAN (R 3.5.1)                
#>  digest        0.6.18     2018-10-10 [1] CRAN (R 3.5.1)                
#>  evaluate      0.12       2018-10-09 [1] CRAN (R 3.5.1)                
#>  fs            1.2.6      2018-08-23 [1] CRAN (R 3.5.1)                
#>  glue          1.3.0      2018-07-17 [1] CRAN (R 3.5.0)                
#>  highr         0.7        2018-06-09 [1] CRAN (R 3.5.0)                
#>  htmltools     0.3.6      2017-04-28 [1] CRAN (R 3.5.1)                
#>  knitr         1.21       2018-12-10 [1] CRAN (R 3.5.1)                
#>  magrittr      1.5        2014-11-22 [1] CRAN (R 3.5.0)                
#>  memoise       1.1.0      2017-04-21 [1] CRAN (R 3.5.0)                
#>  pkgbuild      1.0.2      2018-10-16 [1] CRAN (R 3.5.1)                
#>  pkgload       1.0.2      2018-10-29 [1] CRAN (R 3.5.1)                
#>  prettyunits   1.0.2      2015-07-13 [1] CRAN (R 3.5.0)                
#>  processx      3.2.1      2018-12-05 [1] CRAN (R 3.5.1)                
#>  ps            1.2.1      2018-11-06 [1] CRAN (R 3.5.1)                
#>  R6            2.3.0      2018-10-04 [1] CRAN (R 3.5.1)                
#>  Rcpp          1.0.0      2018-11-07 [1] CRAN (R 3.5.0)                
#>  remotes       2.0.2      2018-10-30 [1] CRAN (R 3.5.1)                
#>  rlang         0.3.0.1    2018-10-25 [1] CRAN (R 3.5.1)                
#>  rmarkdown     1.11       2018-12-08 [1] CRAN (R 3.5.1)                
#>  rprojroot     1.3-2      2018-01-03 [1] CRAN (R 3.4.3)                
#>  sessioninfo   1.1.1      2018-11-05 [1] CRAN (R 3.5.1)                
#>  stringi       1.2.4      2018-07-23 [1] local                         
#>  stringr       1.3.1      2018-05-10 [1] CRAN (R 3.5.0)                
#>  testthat      2.0.1      2018-10-13 [1] CRAN (R 3.5.1)                
#>  usethis       1.4.0.9000 2018-12-13 [1] Github (r-lib/usethis@923dd75)
#>  withr         2.1.2      2018-03-15 [1] CRAN (R 3.4.4)                
#>  xfun          0.4        2018-10-23 [1] CRAN (R 3.5.1)                
#>  yaml          2.2.0      2018-07-25 [1] CRAN (R 3.5.1)                
#> 
#> [1] C:/Users/Maelle/Documents/R/win-library/3.5
#> [2] C:/Program Files/R/R-3.5.0/library
@maelle
Copy link
Contributor Author

maelle commented Dec 18, 2018

Surprise surprise, I think it might have something to do with names with accents in them. I get the same behaviour if I run desc_normalize() on desc DESCRIPTION.

@jeroen
Copy link
Member

jeroen commented Dec 18, 2018

This looks similar as r-lib/devtools#1948

@maelle
Copy link
Contributor Author

maelle commented Dec 18, 2018

Interesting! I'm trying to see where and why the field is simply dropped. 😿

@maelle
Copy link
Contributor Author

maelle commented Dec 18, 2018

From someone not on Windows

download.file("https://raw.githubusercontent.com/ropensci/codemetar/master/DESCRIPTION",
              "thedescription")
readLines("thedescription")
#>   [1] "Package: codemetar"                                                                
#>   [2] "Type: Package"                                                                     
#>   [3] "Title: Generate 'CodeMeta' Metadata for R Packages"                                
#>   [4] "Version: 0.1.6"                                                                    
#>   [5] "Authors@R: "                                                                       
#>   [6] "    c(person(given = \"Carl\","                                                    
#>   [7] "             family = \"Boettiger\","                                              
#>   [8] "             role = c(\"aut\", \"cre\", \"cph\"),"                                 
#>   [9] "             email = \"[email protected]\","                                      
#>  [10] "             comment = c(ORCID = \"0000-0002-1642-628X\")),"                       
#>  [11] "      person(given = \"Anna\","                                                    
#>  [12] "             family = \"Krystalli\","                                              
#>  [13] "             role = c(\"rev\", \"ctb\"),"                                          
#>  [14] "             comment = c(ORCID = \"0000-0002-2378-4915\")),"                       
#>  [15] "      person(given = \"Toph\","                                                    
#>  [16] "             family = \"Allen\","                                                  
#>  [17] "             role = \"rev\","                                                      
#>  [18] "             comment = c(ORCID = \"0000-0003-4580-091X\")),"                       
#>  [19] "      person(given = \"Maëlle\","                                                  
#>  [20] "             family = \"Salmon\","                                                 
#>  [21] "             role = c(\"ctb\", \"aut\"),"                                          
#>  [22] "             comment = c(ORCID = \"0000-0002-2815-0399\")),"                       
#>  [23] "      person(given = \"rOpenSci\","                                                
#>  [24] "             role = \"fnd\","                                                      
#>  [25] "             comment = \"https://ropensci.org/\"),"                                
#>  [26] "      person(given = \"Katrin\","                                                  
#>  [27] "             family = \"Leinweber\","                                              
#>  [28] "             role = \"ctb\","                                                      
#>  [29] "             comment = c(ORCID = \"0000-0001-5135-5758\")),"                       
#>  [30] "      person(given = \"Noam\","                                                    
#>  [31] "             family = \"Ross\","                                                   
#>  [32] "             role = \"ctb\","                                                      
#>  [33] "             comment = c(ORCID = \"0000-0002-2136-0000\")),"                       
#>  [34] "      person(given = \"Arfon\","                                                   
#>  [35] "             family = \"Smith\","                                                  
#>  [36] "             role = \"ctb\"),"                                                     
#>  [37] "      person(given = \"Jeroen\","                                                  
#>  [38] "             family = \"Ooms\","                                                   
#>  [39] "             role = \"ctb\","                                                      
#>  [40] "             comment = c(ORCID = \"0000-0002-4035-0289\")),"                       
#>  [41] "      person(given = \"Sebastian\","                                               
#>  [42] "             family = \"Meyer\","                                                  
#>  [43] "             role = \"ctb\","                                                      
#>  [44] "             comment = c(ORCID = \"0000-0002-1791-9449\")),"                       
#>  [45] "      person(given = \"Michael\","                                                 
#>  [46] "             family = \"Rustler\","                                                
#>  [47] "             role = \"ctb\","                                                      
#>  [48] "             comment = c(ORCID = \"0000-0003-0647-7726\")),"                       
#>  [49] "      person(given = \"Hauke\","                                                   
#>  [50] "             family = \"Sonnenberg\","                                             
#>  [51] "             role = \"ctb\","                                                      
#>  [52] "             comment = c(ORCID = \"0000-0001-9134-2871\"))"                        
#>  [53] "      )"                                                                           
#>  [54] "Description: The 'Codemeta' Project defines a 'JSON-LD' format for describing"     
#>  [55] "  software metadata, as detailed at <https://codemeta.github.io>. This package"    
#>  [56] "  provides utilities to generate, parse, and modify 'codemeta.json' files "        
#>  [57] "  automatically for R packages, as well as tools and examples for working with"    
#>  [58] "  'codemeta.json' 'JSON-LD' more generally."                                       
#>  [59] "License: GPL-3"                                                                    
#>  [60] "URL: https://github.com/ropensci/codemetar, https://ropensci.github.io/codemetar"  
#>  [61] "BugReports: https://github.com/ropensci/codemetar/issues"                          
#>  [62] "Encoding: UTF-8"                                                                   
#>  [63] "LazyData: true"                                                                    
#>  [64] "RoxygenNote: 6.1.0.9000"                                                           
#>  [65] "Depends: R (>= 3.0.0)"                                                             
#>  [66] "Imports: "                                                                         
#>  [67] "    jsonlite (>= 1.3),"                                                            
#>  [68] "    jsonld,"                                                                       
#>  [69] "    git2r,"                                                                        
#>  [70] "    pkgbuild,"                                                                     
#>  [71] "    memoise,"                                                                      
#>  [72] "    methods,"                                                                      
#>  [73] "    stats,"                                                                        
#>  [74] "    stringi,"                                                                      
#>  [75] "    readr,"                                                                        
#>  [76] "    desc,"                                                                         
#>  [77] "    usethis,"                                                                      
#>  [78] "    whisker,"                                                                      
#>  [79] "    tibble,"                                                                       
#>  [80] "    crul,"                                                                         
#>  [81] "    gh,"                                                                           
#>  [82] "    stringr,"                                                                      
#>  [83] "    sessioninfo,"                                                                  
#>  [84] "    purrr,"                                                                        
#>  [85] "    curl,"                                                                         
#>  [86] "    commonmark,"                                                                   
#>  [87] "    xml2,"                                                                         
#>  [88] "    magrittr,"                                                                     
#>  [89] "    glue"                                                                          
#>  [90] "Suggests: "                                                                        
#>  [91] "    testthat,"                                                                     
#>  [92] "    jsonvalidate,"                                                                 
#>  [93] "    covr,"                                                                         
#>  [94] "    knitr,"                                                                        
#>  [95] "    rmarkdown,"                                                                    
#>  [96] "    dplyr (>= 0.7.0),"                                                             
#>  [97] "    printr"                                                                        
#>  [98] "VignetteBuilder: knitr"                                                            
#>  [99] "X-schema.org-keywords: metadata, codemeta, ropensci, citation, credit, linked-data"
#> [100] "X-schema.org-isPartOf: https://ropensci.org"
desc::desc_normalize(file = "thedescription")
#> Type: Package
#> Package: codemetar
#> Title: Generate 'CodeMeta' Metadata for R Packages
#> Version: 0.1.6
#> Authors@R (parsed):
#>     * Carl Boettiger <[email protected]> [aut, cre, cph] (<https://orcid.org/0000-0002-1642-628X>)
#>     * Anna Krystalli [rev, ctb] (<https://orcid.org/0000-0002-2378-4915>)
#>     * Toph Allen [rev] (<https://orcid.org/0000-0003-4580-091X>)
#>     * Maëlle Salmon [ctb, aut] (<https://orcid.org/0000-0002-2815-0399>)
#>     * rOpenSci [fnd] (https://ropensci.org/)
#>     * Katrin Leinweber [ctb] (<https://orcid.org/0000-0001-5135-5758>)
#>     * Noam Ross [ctb] (<https://orcid.org/0000-0002-2136-0000>)
#>     * Arfon Smith [ctb]
#>     * Jeroen Ooms [ctb] (<https://orcid.org/0000-0002-4035-0289>)
#>     * Sebastian Meyer [ctb] (<https://orcid.org/0000-0002-1791-9449>)
#>     * Michael Rustler [ctb] (<https://orcid.org/0000-0003-0647-7726>)
#>     * Hauke Sonnenberg [ctb] (<https://orcid.org/0000-0001-9134-2871>)
#> Description: The 'Codemeta' Project defines a 'JSON-LD' format for
#>     describing software metadata, as detailed at
#>     <https://codemeta.github.io>. This package provides utilities to
#>     generate, parse, and modify 'codemeta.json' files automatically for R
#>     packages, as well as tools and examples for working with
#>     'codemeta.json' 'JSON-LD' more generally.
#> License: GPL-3
#> URL: https://github.com/ropensci/codemetar,
#>     https://ropensci.github.io/codemetar
#> BugReports: https://github.com/ropensci/codemetar/issues
#> Depends:
#>     R (>= 3.0.0)
#> Imports:
#>     jsonlite (>= 1.3),
#>     jsonld,
#>     git2r,
#>     pkgbuild,
#>     memoise,
#>     methods,
#>     stats,
#>     stringi,
#>     readr,
#>     desc,
#>     usethis,
#>     whisker,
#>     tibble,
#>     crul,
#>     gh,
#>     stringr,
#>     sessioninfo,
#>     purrr,
#>     curl,
#>     commonmark,
#>     xml2,
#>     magrittr,
#>     glue
#> Suggests:
#>     testthat,
#>     jsonvalidate,
#>     covr,
#>     knitr,
#>     rmarkdown,
#>     dplyr (>= 0.7.0),
#>     printr
#> VignetteBuilder:
#>     knitr
#> Encoding: UTF-8
#> LazyData: true
#> RoxygenNote: 6.1.0.9000
#> X-schema.org-isPartOf: https://ropensci.org
#> X-schema.org-keywords: metadata, codemeta, ropensci, citation, credit,
#>     linked-data
readLines("thedescription")
#>   [1] "Type: Package"                                                            
#>   [2] "Package: codemetar"                                                       
#>   [3] "Title: Generate 'CodeMeta' Metadata for R Packages"                       
#>   [4] "Version: 0.1.6"                                                           
#>   [5] "Authors@R: "                                                              
#>   [6] "    c(person(given = \"Carl\","                                           
#>   [7] "             family = \"Boettiger\","                                     
#>   [8] "             role = c(\"aut\", \"cre\", \"cph\"),"                        
#>   [9] "             email = \"[email protected]\","                             
#>  [10] "             comment = c(ORCID = \"0000-0002-1642-628X\")),"              
#>  [11] "      person(given = \"Anna\","                                           
#>  [12] "             family = \"Krystalli\","                                     
#>  [13] "             role = c(\"rev\", \"ctb\"),"                                 
#>  [14] "             comment = c(ORCID = \"0000-0002-2378-4915\")),"              
#>  [15] "      person(given = \"Toph\","                                           
#>  [16] "             family = \"Allen\","                                         
#>  [17] "             role = \"rev\","                                             
#>  [18] "             comment = c(ORCID = \"0000-0003-4580-091X\")),"              
#>  [19] "      person(given = \"Maëlle\","                                         
#>  [20] "             family = \"Salmon\","                                        
#>  [21] "             role = c(\"ctb\", \"aut\"),"                                 
#>  [22] "             comment = c(ORCID = \"0000-0002-2815-0399\")),"              
#>  [23] "      person(given = \"rOpenSci\","                                       
#>  [24] "             role = \"fnd\","                                             
#>  [25] "             comment = \"https://ropensci.org/\"),"                       
#>  [26] "      person(given = \"Katrin\","                                         
#>  [27] "             family = \"Leinweber\","                                     
#>  [28] "             role = \"ctb\","                                             
#>  [29] "             comment = c(ORCID = \"0000-0001-5135-5758\")),"              
#>  [30] "      person(given = \"Noam\","                                           
#>  [31] "             family = \"Ross\","                                          
#>  [32] "             role = \"ctb\","                                             
#>  [33] "             comment = c(ORCID = \"0000-0002-2136-0000\")),"              
#>  [34] "      person(given = \"Arfon\","                                          
#>  [35] "             family = \"Smith\","                                         
#>  [36] "             role = \"ctb\"),"                                            
#>  [37] "      person(given = \"Jeroen\","                                         
#>  [38] "             family = \"Ooms\","                                          
#>  [39] "             role = \"ctb\","                                             
#>  [40] "             comment = c(ORCID = \"0000-0002-4035-0289\")),"              
#>  [41] "      person(given = \"Sebastian\","                                      
#>  [42] "             family = \"Meyer\","                                         
#>  [43] "             role = \"ctb\","                                             
#>  [44] "             comment = c(ORCID = \"0000-0002-1791-9449\")),"              
#>  [45] "      person(given = \"Michael\","                                        
#>  [46] "             family = \"Rustler\","                                       
#>  [47] "             role = \"ctb\","                                             
#>  [48] "             comment = c(ORCID = \"0000-0003-0647-7726\")),"              
#>  [49] "      person(given = \"Hauke\","                                          
#>  [50] "             family = \"Sonnenberg\","                                    
#>  [51] "             role = \"ctb\","                                             
#>  [52] "             comment = c(ORCID = \"0000-0001-9134-2871\")))"              
#>  [53] "Description: The 'Codemeta' Project defines a 'JSON-LD' format for"       
#>  [54] "    describing software metadata, as detailed at"                         
#>  [55] "    <https://codemeta.github.io>. This package provides utilities to"     
#>  [56] "    generate, parse, and modify 'codemeta.json' files automatically for R"
#>  [57] "    packages, as well as tools and examples for working with"             
#>  [58] "    'codemeta.json' 'JSON-LD' more generally."                            
#>  [59] "License: GPL-3"                                                           
#>  [60] "URL: https://github.com/ropensci/codemetar,"                              
#>  [61] "    https://ropensci.github.io/codemetar"                                 
#>  [62] "BugReports: https://github.com/ropensci/codemetar/issues"                 
#>  [63] "Depends: "                                                                
#>  [64] "    R (>= 3.0.0)"                                                         
#>  [65] "Imports: "                                                                
#>  [66] "    jsonlite (>= 1.3),"                                                   
#>  [67] "    jsonld,"                                                              
#>  [68] "    git2r,"                                                               
#>  [69] "    pkgbuild,"                                                            
#>  [70] "    memoise,"                                                             
#>  [71] "    methods,"                                                             
#>  [72] "    stats,"                                                               
#>  [73] "    stringi,"                                                             
#>  [74] "    readr,"                                                               
#>  [75] "    desc,"                                                                
#>  [76] "    usethis,"                                                             
#>  [77] "    whisker,"                                                             
#>  [78] "    tibble,"                                                              
#>  [79] "    crul,"                                                                
#>  [80] "    gh,"                                                                  
#>  [81] "    stringr,"                                                             
#>  [82] "    sessioninfo,"                                                         
#>  [83] "    purrr,"                                                               
#>  [84] "    curl,"                                                                
#>  [85] "    commonmark,"                                                          
#>  [86] "    xml2,"                                                                
#>  [87] "    magrittr,"                                                            
#>  [88] "    glue"                                                                 
#>  [89] "Suggests: "                                                               
#>  [90] "    testthat,"                                                            
#>  [91] "    jsonvalidate,"                                                        
#>  [92] "    covr,"                                                                
#>  [93] "    knitr,"                                                               
#>  [94] "    rmarkdown,"                                                           
#>  [95] "    dplyr (>= 0.7.0),"                                                    
#>  [96] "    printr"                                                               
#>  [97] "VignetteBuilder: "                                                        
#>  [98] "    knitr"                                                                
#>  [99] "Encoding: UTF-8"                                                          
#> [100] "LazyData: true"                                                           
#> [101] "RoxygenNote: 6.1.0.9000"                                                  
#> [102] "X-schema.org-isPartOf: https://ropensci.org"                              
#> [103] "X-schema.org-keywords: metadata, codemeta, ropensci, citation, credit,"   
#> [104] "    linked-data"

Created on 2018-12-18 by the reprex package (v0.2.1)

Session info
devtools::session_info()
#> ─ Session info ──────────────────────────────────────────────────────────
#>  setting  value                                      
#>  version  R version 3.5.1 Patched (2018-11-18 r75627)
#>  os       macOS Mojave 10.14.2                       
#>  system   x86_64, darwin15.6.0                       
#>  ui       X11                                        
#>  language (EN)                                       
#>  collate  en_US.UTF-8                                
#>  ctype    en_US.UTF-8                                
#>  tz       US/Pacific                                 
#>  date     2018-12-18                                 
#> 
#> ─ Packages ──────────────────────────────────────────────────────────────
#>  package     * version date       lib source        
#>  assertthat    0.2.0   2017-04-11 [1] CRAN (R 3.5.0)
#>  backports     1.1.3   2018-12-14 [1] CRAN (R 3.5.1)
#>  callr         3.1.0   2018-12-10 [1] CRAN (R 3.5.1)
#>  cli           1.0.1   2018-09-25 [1] CRAN (R 3.5.1)
#>  crayon        1.3.4   2017-09-16 [1] CRAN (R 3.5.0)
#>  desc          1.2.0   2018-05-01 [1] CRAN (R 3.5.0)
#>  devtools      2.0.1   2018-10-26 [1] CRAN (R 3.5.1)
#>  digest        0.6.18  2018-10-10 [1] CRAN (R 3.5.1)
#>  evaluate      0.12    2018-10-09 [1] CRAN (R 3.5.0)
#>  fs            1.2.6   2018-08-23 [1] CRAN (R 3.5.1)
#>  glue          1.3.0   2018-07-17 [1] CRAN (R 3.5.1)
#>  highr         0.7     2018-06-09 [1] CRAN (R 3.5.0)
#>  htmltools     0.3.6   2017-04-28 [1] CRAN (R 3.5.0)
#>  knitr         1.21    2018-12-10 [1] CRAN (R 3.5.1)
#>  magrittr      1.5     2014-11-22 [1] CRAN (R 3.5.0)
#>  memoise       1.1.0   2017-04-21 [1] CRAN (R 3.5.0)
#>  pkgbuild      1.0.2   2018-10-16 [1] CRAN (R 3.5.1)
#>  pkgload       1.0.2   2018-10-29 [1] CRAN (R 3.5.1)
#>  prettyunits   1.0.2   2015-07-13 [1] CRAN (R 3.5.0)
#>  processx      3.2.1   2018-12-05 [1] CRAN (R 3.5.1)
#>  ps            1.2.1   2018-11-06 [1] CRAN (R 3.5.1)
#>  R6            2.3.0   2018-10-04 [1] CRAN (R 3.5.1)
#>  Rcpp          1.0.0   2018-11-07 [1] CRAN (R 3.5.1)
#>  remotes       2.0.2   2018-10-30 [1] CRAN (R 3.5.1)
#>  rlang         0.3.0.1 2018-10-25 [1] CRAN (R 3.5.1)
#>  rmarkdown     1.11    2018-12-08 [1] CRAN (R 3.5.0)
#>  rprojroot     1.3-2   2018-01-03 [1] CRAN (R 3.5.0)
#>  sessioninfo   1.1.1   2018-11-05 [1] CRAN (R 3.5.1)
#>  stringi       1.2.4   2018-07-20 [1] CRAN (R 3.5.0)
#>  stringr       1.3.1   2018-05-10 [1] CRAN (R 3.5.0)
#>  testthat      2.0.1   2018-10-13 [1] CRAN (R 3.5.0)
#>  usethis       1.4.0   2018-08-14 [1] CRAN (R 3.5.0)
#>  withr         2.1.2   2018-03-15 [1] CRAN (R 3.5.0)
#>  xfun          0.4     2018-10-23 [1] CRAN (R 3.5.1)
#>  yaml          2.2.0   2018-07-25 [1] CRAN (R 3.5.1)
#> 
#> [1] /Library/Frameworks/R.framework/Versions/3.5/Resources/library

@maelle
Copy link
Contributor Author

maelle commented Dec 18, 2018

I've also tried it locally with the CRAN version and got the problem as well. So it's on Windows, with accented names, I think. 🔥

@maelle
Copy link
Contributor Author

maelle commented Dec 18, 2018

This is where the field gets dropped

mat[] <- iconv(mat[], from = "UTF-8", to = encoding)

authors <- c(person(given = "Gábor",
         family = "Csárdi",
         role = c("aut", "cre"),
         email = "[email protected]"),
  person(given = "Kirill",
         family = "Müller",
         role = "aut"),
  person(given = "Jim",
         family = "Hester",
         role = "aut",
         email = "[email protected]"),
  person(given = "Maëlle",
         family = "Salmon",
         role = "ctb",
         comment = c(ORCID = "0000-0002-2815-0399")))

encoding <- c(Encoding = "UTF-8")
iconv(authors, from = "UTF-8", to = encoding)
#> [1] NA                                           
#> [2] NA                                           
#> [3] "Jim Hester <[email protected]> [aut]"
#> [4] NA

Created on 2018-12-18 by the reprex package (v0.2.1)

@maelle
Copy link
Contributor Author

maelle commented Dec 18, 2018

authors <- c(person(given = "Gábor",
         family = "Csárdi",
         role = c("aut", "cre"),
         email = "[email protected]"),
  person(given = "Kirill",
         family = "Müller",
         role = "aut"),
  person(given = "Jim",
         family = "Hester",
         role = "aut",
         email = "[email protected]"),
  person(given = "Maëlle",
         family = "Salmon",
         role = "ctb",
         comment = c(ORCID = "0000-0002-2815-0399")))

encoding <- c(Encoding = "UTF-8")
iconv(authors, from = "UTF-8", to = encoding)
#> [1] NA                                           
#> [2] NA                                           
#> [3] "Jim Hester <[email protected]> [aut]"
#> [4] NA
iconv(authors, from = "latin1", to = encoding)
#> [1] "Gábor Csárdi <[email protected]> [aut, cre]"             
#> [2] "Kirill Müller [aut]"                                          
#> [3] "Jim Hester <[email protected]> [aut]"                  
#> [4] "Maëlle Salmon [ctb] (<https://orcid.org/0000-0002-2815-0399>)"

Created on 2018-12-18 by the reprex package (v0.2.1)

@VincentGuyader
Copy link

if needed another reprex here
reprex.zip

Regards

maurolepore added a commit to maurolepore/junr that referenced this issue Aug 10, 2019
Careful: the é in van Dunné may cause use_tidy_description() to drop Authors@R (r-lib/desc#80).

Authors@R:
    person(given = "Frans",
           family = "van Dunné",
           role = c("aut", "cre"),
           email = "[email protected]")
maurolepore added a commit to maurolepore/junr that referenced this issue Aug 10, 2019
Careful: the é in van Dunné may cause use_tidy_description() to drop Authors@R (r-lib/desc#80).

Authors@R:
    person(given = "Frans",
           family = "van Dunné",
           role = c("aut", "cre"),
           email = "[email protected]")
@statnmap
Copy link

Could we use the system encoding as the "from" parameter ?
I just tried on Windows

authors <- c(person(given = "Gábor",
         family = "Csárdi",
         role = c("aut", "cre"),
         email = "[email protected]"),
  person(given = "Kirill",
         family = "Müller",
         role = "aut"),
  person(given = "Jim",
         family = "Hester",
         role = "aut",
         email = "[email protected]"),
  person(given = "Maëlle",
         family = "Salmon",
         role = "ctb",
         comment = c(ORCID = "0000-0002-2815-0399")))

encoding <- c(Encoding = "UTF-8")

# Get locale from system
locale <- Sys.getlocale("LC_CTYPE")
os_encoding <- gsub(pattern = "^.*[.]", "", locale)
iconv(authors, from = os_encoding, to = encoding)
#> [1] "Gábor Csárdi <[email protected]> [aut, cre]"             
#> [2] "Kirill Müller [aut]"                                          
#> [3] "Jim Hester <[email protected]> [aut]"                  
#> [4] "Maëlle Salmon [ctb] (<https://orcid.org/0000-0002-2815-0399>)"

@gaborcsardi gaborcsardi added the bug an unexpected problem or unintended behavior label Mar 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug an unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

5 participants