[Rd] Trouble installing packages when history mechanism is modified by user profile

2017-03-03 Thread Hugo Raguet
I tried installing the 'ks' package from my interactive R session, it failed with the following Erreur dans .External2(C_loadhistory, file) : aucun mécanisme d'historique des commandes disponible Calls: Exécution arrêtée second line is french for "no command history mechanism available", fouth

Re: [Rd] buggy ANSI escape sequences in R prompt

2017-02-07 Thread Hugo Raguet
in RStudio. > RStudio does not support multi-line prompt currently. > > Maybe this is also interesting for you, if you want a dynamic R prompt: > https://github.com/gaborcsardi/prompt#readme (Self-ad, sorry.) > > Gabor > > On Tue, Feb 7, 2017 at 8:59 AM, Hugo Raguet > w

[Rd] buggy ANSI escape sequences in R prompt

2017-02-07 Thread Hugo Raguet
When R is run interactively in a terminal which supports colors, it is possible to use ANSI escape sequences in order to put colors in the prompt, such as options(prompt = "\033[0;31mThis is red\033[0m> ") Unfortunately, something goes wrong because for long command lines, the line continuation o