Skip to main content
replaced http://stackoverflow.com/ with https://stackoverflow.com/
Source Link
mv ~/.Rprofile{,.bak} mv .RData{,bak} 

I think the issue is a nonstandard options('prompt'). I (re)moved ~/.Rpofile and the .RData file for the working directory of the session and no longer had the blocking/endless waiting/frozen issue.

prompt as an issue also showed up when octave's default prompt changed: http://stackoverflow.com/questions/27742075/emacs-freezes-when-running-an-octave-code-block-within-org-modehttps://stackoverflow.com/questions/27742075/emacs-freezes-when-running-an-octave-code-block-within-org-mode

setting my prompt is now pretty complicated

.First <- function(...){ updatePrompt <- function(...) { # Emacs Speaks Stats, use default prompt if(options('STERM')=='iESS') options(prompt="> "); # Rstudio -- time but no colors else if( any(grepl("RStudio", .libPaths())) ) options(prompt=format(Sys.time(), "\n# %X\n#> ")) # command line R else options(prompt=format(Sys.time(), "\n\e[38;5;197m# \e[38;5;27m%X\e[0;0m\n ")) return(TRUE) } # add prompt if we're in interactive mode if(interactive()) { addTaskCallback(updatePrompt) updatePrompt() } } 

https://github.com/LabNeuroCogDevel/dotfiles/blob/master/Rprofile/.Rprofile

mv ~/.Rprofile{,.bak} mv .RData{,bak} 

I think the issue is a nonstandard options('prompt'). I (re)moved ~/.Rpofile and the .RData file for the working directory of the session and no longer had the blocking/endless waiting/frozen issue.

prompt as an issue also showed up when octave's default prompt changed: http://stackoverflow.com/questions/27742075/emacs-freezes-when-running-an-octave-code-block-within-org-mode

setting my prompt is now pretty complicated

.First <- function(...){ updatePrompt <- function(...) { # Emacs Speaks Stats, use default prompt if(options('STERM')=='iESS') options(prompt="> "); # Rstudio -- time but no colors else if( any(grepl("RStudio", .libPaths())) ) options(prompt=format(Sys.time(), "\n# %X\n#> ")) # command line R else options(prompt=format(Sys.time(), "\n\e[38;5;197m# \e[38;5;27m%X\e[0;0m\n ")) return(TRUE) } # add prompt if we're in interactive mode if(interactive()) { addTaskCallback(updatePrompt) updatePrompt() } } 

https://github.com/LabNeuroCogDevel/dotfiles/blob/master/Rprofile/.Rprofile

mv ~/.Rprofile{,.bak} mv .RData{,bak} 

I think the issue is a nonstandard options('prompt'). I (re)moved ~/.Rpofile and the .RData file for the working directory of the session and no longer had the blocking/endless waiting/frozen issue.

prompt as an issue also showed up when octave's default prompt changed: https://stackoverflow.com/questions/27742075/emacs-freezes-when-running-an-octave-code-block-within-org-mode

setting my prompt is now pretty complicated

.First <- function(...){ updatePrompt <- function(...) { # Emacs Speaks Stats, use default prompt if(options('STERM')=='iESS') options(prompt="> "); # Rstudio -- time but no colors else if( any(grepl("RStudio", .libPaths())) ) options(prompt=format(Sys.time(), "\n# %X\n#> ")) # command line R else options(prompt=format(Sys.time(), "\n\e[38;5;197m# \e[38;5;27m%X\e[0;0m\n ")) return(TRUE) } # add prompt if we're in interactive mode if(interactive()) { addTaskCallback(updatePrompt) updatePrompt() } } 

https://github.com/LabNeuroCogDevel/dotfiles/blob/master/Rprofile/.Rprofile

fix prompt issue, add link
Source Link
Will
  • 203
  • 1
  • 6
mv ~/.Rprofile{,.bak} mv .RData{,bak} 

I think the issue is a nonstandard options('prompt'). I (re)moved ~/.Rpofile and the .RData file for the working directory of the session and no longer had the blocking/endless waiting/frozen issue.

prompt as an issue also showed up when octave's default prompt changed: http://stackoverflow.com/questions/27742075/emacs-freezes-when-running-an-octave-code-block-within-org-mode

setting my prompt is now pretty complicated

.First <- function(...){ updatePrompt <- function(...) { # Emacs Speaks Stats, use default prompt if(options('STERM')=='iESS') options(prompt="> "); # Rstudio -- time but no colors else if( any(grepl("RStudio", .libPaths())) ) options(prompt=format(Sys.time(), "\n# %X\n#> ")) # command line R else options(prompt=format(Sys.time(), "\n^[[38;5;197m#"\n\e[38;5;197m# ^[[38;5;27m%X^[[0;0m\n\e[38;5;27m%X\e[0;0m\n ")) return(TRUE) } # add prompt if we're in interactive mode if(interactive()) { addTaskCallback(updatePrompt) }  }updatePrompt() } } 

https://github.com/LabNeuroCogDevel/dotfiles/blob/master/Rprofile/.Rprofile

mv ~/.Rprofile{,.bak} mv .RData{,bak} 

I think the issue is a nonstandard options('prompt'). I (re)moved ~/.Rpofile and the .RData file for the working directory of the session and no longer had the blocking/endless waiting/frozen issue.

prompt as an issue also showed up when octave's default prompt changed: http://stackoverflow.com/questions/27742075/emacs-freezes-when-running-an-octave-code-block-within-org-mode

setting my prompt is now pretty complicated

.First <- function(...){ updatePrompt <- function(...) { # Emacs Speaks Stats, use default prompt if(options('STERM')=='iESS') options(prompt="> "); # Rstudio -- time but no colors else if( any(grepl("RStudio", .libPaths())) ) options(prompt=format(Sys.time(), "\n# %X\n#> ")) # command line R else options(prompt=format(Sys.time(), "\n^[[38;5;197m# ^[[38;5;27m%X^[[0;0m\n ") return(TRUE) } # add prompt if we're in interactive mode if(interactive()) { addTaskCallback(updatePrompt) }  } 
mv ~/.Rprofile{,.bak} mv .RData{,bak} 

I think the issue is a nonstandard options('prompt'). I (re)moved ~/.Rpofile and the .RData file for the working directory of the session and no longer had the blocking/endless waiting/frozen issue.

prompt as an issue also showed up when octave's default prompt changed: http://stackoverflow.com/questions/27742075/emacs-freezes-when-running-an-octave-code-block-within-org-mode

setting my prompt is now pretty complicated

.First <- function(...){ updatePrompt <- function(...) { # Emacs Speaks Stats, use default prompt if(options('STERM')=='iESS') options(prompt="> "); # Rstudio -- time but no colors else if( any(grepl("RStudio", .libPaths())) ) options(prompt=format(Sys.time(), "\n# %X\n#> ")) # command line R else options(prompt=format(Sys.time(), "\n\e[38;5;197m# \e[38;5;27m%X\e[0;0m\n ")) return(TRUE) } # add prompt if we're in interactive mode if(interactive()) { addTaskCallback(updatePrompt) updatePrompt() } } 

https://github.com/LabNeuroCogDevel/dotfiles/blob/master/Rprofile/.Rprofile

added 639 characters in body
Source Link
Will
  • 203
  • 1
  • 6
mv ~/.Rprofile{,.bak} mv .RData{,bak} 

I think the issue is a nonstandard prompt or updatePromptoptions('prompt') function. I (re)moved ~/.Rpofile and the .RData file for the working directory of the session and no longer had the blocking/endless waiting/frozen issue.

prompt as an issue also showed up when octave's default prompt changed: http://stackoverflow.com/questions/27742075/emacs-freezes-when-running-an-octave-code-block-within-org-mode

I'd be great if there is a way to see if ESS has launched R and adjust thesetting my prompt accordingly. Maybe something with options('STERM')=='iESS'?is now pretty complicated

.First <- function(...){ updatePrompt <- function(...) { # Emacs Speaks Stats, use default prompt if(options('STERM')=='iESS') options(prompt="> "); # Rstudio -- time but no colors else if( any(grepl("RStudio", .libPaths())) ) options(prompt=format(Sys.time(), "\n# %X\n#> ")) # command line R else options(prompt=format(Sys.time(), "\n^[[38;5;197m# ^[[38;5;27m%X^[[0;0m\n ") return(TRUE) } # add prompt if we're in interactive mode if(interactive()) { addTaskCallback(updatePrompt) } } 
mv ~/.Rprofile{,.bak} mv .RData{,bak} 

I think the issue is a nonstandard prompt or updatePrompt function. I (re)moved ~/.Rpofile and the .RData file for the working directory of the session and no longer had the blocking/endless waiting/frozen issue.

prompt as an issue also showed up when octave's default prompt changed: http://stackoverflow.com/questions/27742075/emacs-freezes-when-running-an-octave-code-block-within-org-mode

I'd be great if there is a way to see if ESS has launched R and adjust the prompt accordingly. Maybe something with options('STERM')=='iESS'?

mv ~/.Rprofile{,.bak} mv .RData{,bak} 

I think the issue is a nonstandard options('prompt'). I (re)moved ~/.Rpofile and the .RData file for the working directory of the session and no longer had the blocking/endless waiting/frozen issue.

prompt as an issue also showed up when octave's default prompt changed: http://stackoverflow.com/questions/27742075/emacs-freezes-when-running-an-octave-code-block-within-org-mode

setting my prompt is now pretty complicated

.First <- function(...){ updatePrompt <- function(...) { # Emacs Speaks Stats, use default prompt if(options('STERM')=='iESS') options(prompt="> "); # Rstudio -- time but no colors else if( any(grepl("RStudio", .libPaths())) ) options(prompt=format(Sys.time(), "\n# %X\n#> ")) # command line R else options(prompt=format(Sys.time(), "\n^[[38;5;197m# ^[[38;5;27m%X^[[0;0m\n ") return(TRUE) } # add prompt if we're in interactive mode if(interactive()) { addTaskCallback(updatePrompt) } } 
Source Link
Will
  • 203
  • 1
  • 6
Loading