R/OnAttach.R

Defines functions .onAttach

##\nTo cite SP2000 in publications, please use:
##\nDing LY, Li H, Tao J, Zhang JL, Huang MR, Yang K, Wang J, He DM, Ding CZ (2020) SP2000: An open source R package for querying the catalogue of life. Biodiversity Science.

.onAttach <- function(libname, pkgname){
    packageStartupMessage(sprintf("Welcome to R Package SP2000 %s !!!
                                  \n\nTo start with the SP2000, please digit:
                                  \nhttps://cran.r-project.org/package=SP2000(R)
                                  \nhttps://pypi.org/project/SP2000(Python)",
                                  utils::packageVersion("SP2000")),sep = "\n")

    syst <- Sys.info()[['sysname']]
    if(syst == "Windows"){
        # Ensure that Chinese Characters could be displayed properly.
        suppressMessages(Sys.setlocale(category = "LC_ALL", locale = "Chinese"))
    }
}

Try the SP2000 package in your browser

Any scripts or data that you put into this service are public.

SP2000 documentation built on Nov. 8, 2020, 4:41 p.m.