I'm not sure why your output is slightly different. It is mostly the same just rearranged. The only substantial difference I see is that your output doesn't include the package version. I am using R 4.3.2 on Windows. Maybe the R version is causing the difference?
That's because you installed {dplyr} from CRAN, which inserts the field Date/Publication
. Note also that I was mistaken above. If a user installs the development version of your package directly from GitHub, install_github()
still inserts the year
into DESCRIPTION
(albeit in a slightly different field name). Only with devtools::load_all()
do you get the warning about the missing year, so this is nothing to worry about, since only package developers (ie you) will see it.
# dplyr from CRAN
citation("dplyr")
## To cite package ‘dplyr’ in publications use:
##
## Wickham H, François R, Henry L, Müller K, Vaughan D (2023). _dplyr: A Grammar of Data
## Manipulation_. R package version 1.1.4, <https://CRAN.R-project.org/package=dplyr>.
##
## A BibTeX entry for LaTeX users is
##
## @Manual{,
## title = {dplyr: A Grammar of Data Manipulation},
## author = {Hadley Wickham and Romain François and Lionel Henry and Kirill Müller and Davis Vaughan},
## year = {2023},
## note = {R package version 1.1.4},
## url = {https://CRAN.R-project.org/package=dplyr},
## }
# dplyr from install_github()
remotes::install_github("tidyverse/dplyr")
citation("dplyr")
## To cite package ‘dplyr’ in publications use:
##
## Wickham H, François R, Henry L, Müller K, Vaughan D (2024). _dplyr: A Grammar of Data
## Manipulation_. R package version 1.1.4.9000, https://github.com/tidyverse/dplyr,
## <https://dplyr.tidyverse.org>.
##
## A BibTeX entry for LaTeX users is
##
## @Manual{,
## title = {dplyr: A Grammar of Data Manipulation},
## author = {Hadley Wickham and Romain François and Lionel Henry and Kirill Müller and Davis Vaughan},
## year = {2024},
## note = {R package version 1.1.4.9000, https://github.com/tidyverse/dplyr},
## url = {https://dplyr.tidyverse.org},
## }
# dplyr from load_all()
devtools::load_all()
citation("dplyr")
## To cite package ‘dplyr’ in publications use:
##
## Wickham H, François R, Henry L, Müller K, Vaughan D (????). _dplyr: A Grammar of Data
## Manipulation_. R package version 1.1.4.9000, https://github.com/tidyverse/dplyr,
## <https://dplyr.tidyverse.org>.
##
## A BibTeX entry for LaTeX users is
##
## @Manual{,
## title = {dplyr: A Grammar of Data Manipulation},
## author = {Hadley Wickham and Romain François and Lionel Henry and Kirill Müller and Davis Vaughan},
## note = {R package version 1.1.4.9000, https://github.com/tidyverse/dplyr},
## url = {https://dplyr.tidyverse.org},
## }
## Warning message:
## In citation("dplyr") :
## could not determine year for ‘dplyr’ from package DESCRIPTION file
install_github()
inserts the fields Packaged
and Built
(not sure which one is used by citation()
)
grep 2024 ~/AppData/Local/R/win-library/4.3/dplyr/DESCRIPTION
## Packaged: 2024-02-22 16:02:11 UTC; john
## Built: R 4.3.2; x86_64-w64-mingw32; 2024-02-22 16:02:19 UTC; windows