File: init.R

package info (click to toggle)
littler 0.3.22-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 848 kB
  • sloc: ansic: 586; sh: 132; makefile: 5
file content (16 lines) | stat: -rw-r--r-- 1,004 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16

.onAttach <- function(libname, pkgname) {
    packageStartupMessage("The littler package provides 'r' as a binary.")
    packageStartupMessage("See 'vignette(\"littler-examples\") for several usage illustrations,")
    packageStartupMessage("and see 'vignette(\"littler-faq\") for some basic questions.")
    if (Sys.info()[["sysname"]] %in% c("Linux", "Darwin")) { # nocov start
        if (unname(Sys.which("r")) == "") {
            loc <- normalizePath(system.file("bin", .Platform$r_arch, "r", package="littler"))
            packageStartupMessage("You could link to the 'r' binary installed in\n'", loc, "'\n",
                                  "from '/usr/local/bin' in order to use 'r' for scripting.",
                                  "See the 'vignette(\"littler-faq\")' for more details.")
        if (Sys.info()[["sysname"]] == "Darwin")
            packageStartupMessage("On maxOS, 'r' and 'R' are the same so 'lr' is a possible alternate name for littler.")
        } # nocov end
    }
}