###-*- R -*- Unix Specific ---- .Library <- file.path(R.home(), "library") invisible(.libPaths(unlist(strsplit(Sys.getenv("R_LIBS"), ":")))) local({ ## we distinguish between R_PAPERSIZE as set by the user and by configure papersize <- Sys.getenv("R_PAPERSIZE_USER") if(!nchar(papersize)) { lcpaper <- Sys.getlocale("LC_PAPER") # might be null: OK as nchar is 0 papersize <- if(nchar(lcpaper)) if(length(grep("(_US|_CA)", lcpaper)) > 0) "letter" else "a4" else Sys.getenv("R_PAPERSIZE") } options(papersize = as.vector(papersize), printcmd = as.vector(Sys.getenv("R_PRINTCMD")), latexcmd = as.vector(Sys.getenv("R_LATEXCMD")), dvipscmd = as.vector(Sys.getenv("R_DVIPSCMD")), browser = as.vector(Sys.getenv("R_BROWSER")), pager = file.path(R.home(), "bin", "pager"), pdfviewer = as.vector(Sys.getenv("R_PDFVIEWER"))) }) ## non standard settings for the R.app GUI of the Mac OS X port if(.Platform$GUI == "AQUA") { ## this is set to let RAqua use both X11 device and ## X11/TclTk if (Sys.getenv("DISPLAY") == "") Sys.putenv("DISPLAY" = ":0") ## this is to allow g77 compiler to work Sys.putenv("PATH" = paste(Sys.getenv("PATH"),":/usr/local/bin",sep = "")) }## end "Aqua"