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

2017-03-03 Thread Henrik Bengtsson
Using if (interactive()) utils::loadhistory(file = "~/.Rhistory") should solve your problem. The reason is that install.packages() in turn launches a non-interactive child R process that installs the package. When that process loads your startup file, it fails, because that function can only be

[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