Subject: bug#26357: More info

From: Guillaume MULLER <[email-masked]>
Date: Tue, 4 Apr 2017 11:55:59 +0200

Hi,

I just realized this crash occurs when I start Emacs right after closing R...

------ ~/.Renviron
R_LIBS=~/.R/x86_64-pc-linux-gnu-library/3.2/
R_LIBS_USER=~/.R/x86_64-pc-linux-gnu-library/3.2

PAGER=/usr/bin/less
R_HISTFILE=~/.Rhistory

LANG=en_US.UTF-8
LANGUAGE=en_US.UTF-8
LC_ALL=en_US.UTF-8

------ ~/.Rprofile
.First <- function() {
    # Reload last typed commands
    if (!any(commandArgs()=='--no-readline') && interactive()){
        require(utils)
        try(loadhistory(Sys.getenv("R_HISTFILE")))
    }
    options(quiet=TRUE)
    options(continue=" ")
    options(download.file.method="wget")
    options(repos=c("http://cran.univ-lyon1.fr", "http://cran.irsn.fr"))
    options(showWarnCalls=T, showErrorCalls=T)

    .libPaths("~/.R/x86_64-pc-linux-gnu-library/3.2")
}

# Set width and add date+color to the prompt
updatePrompt <- function(...)
{
    # Add Time + Colors
    options(menu.graphics=FALSE,
            prompt=paste("\001\033[01;32m\002", format(Sys.time(),"%H:%M:%S"), "R > \001\033[00m\002")) ;
    return(invisible(TRUE)) ;
}
updatePrompt() ;
invisible(addTaskCallback(updatePrompt)) ;

# Some useful aliases
cd <- setwd
pwd <- getwd
lss <- dir

# Use Evince as the pdf viewer
options("pdfviewer"="evince")
# Use Firefox as the html viewer
options("htmlviewer"="firefox -new-tab")
# Use Firefox as the browser
options("browser"="firefox -new-tab")

# Does not work!
.Last <- function() {
        if (!any(commandArgs()=='--no-readline') && interactive()){
                require(utils)
                try(savehistory(Sys.getenv("R_HISTFILE")))
        }
}

-- 
Guillaume MULLER, PhD
PRESANS - Remix Coworking - L'Appart
57 rue de Turbigo
75003 Paris
France
http://www.presans.com
http://feeds.feedburner.com/OYI/fr