You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Recently, I have been thinking about how to increase citations to R packages. I believe one of the reasons users don't cite software is that citations to software aren't the norm in academia. Another is that users forget. Taking inspiration from Marek Hlavac, whose stargazer package has more than 1,000 citations, I believe a short .onAttach message cuing the citation can help increase citations.
Here's the code in stargazer that produces the StartupMessage:
A note thanking users may make the message even more effective:
.onAttach <- function(libname, pkgname) {
package_citation <- "Author, X. (Year). MyPackage: A powerful R package for XYZ. R Foundation for Statistical Computing. Version X.X. URL: https://example.com/mypackage"
message("Thank you for using MyPackage!")
message("To acknowledge our work, please cite the package:")
message(package_citation)
}
Suggestion
I've received the following suggestion by e-mail:
https://github.com/cran/stargazer/blob/master/R/stargazer-internal.R
See also
The text was updated successfully, but these errors were encountered: