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
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