R in english (Résolu) !

Postez ici vos questions, réponses, commentaires ou suggestions - Les sujets seront ultérieurement répartis dans les archives par les modérateurs

Modérateur : Groupe des modérateurs

leon nitsche
Messages : 27
Enregistré le : 14 Jan 2009, 13:22

R in english (Résolu) !

Messagepar leon nitsche » 17 Jan 2009, 20:10

Bonjour,


J'ai installé R en choisissant l'anglais comme langue d'installation mais je trouve les menus et les messages d'erreurs sont toujours en français !


Quelqu'un pourrait me dire comment peut-on changer cela en anglais ?

J'ai regardé dans les doc d'aide et FAQs sur le site de R mais j'ai pas trop compris leur explication qui n'était pas très claire pour moi pour pouvoir changler la langue !

EN vous remerciant par avance et vous souhaitant d'agréables moments !

Renaud Lancelot
Messages : 2484
Enregistré le : 16 Déc 2004, 08:01
Contact :

Re: R in english !

Messagepar Renaud Lancelot » 17 Jan 2009, 23:47

leon nitsche a écrit :Bonjour,


J'ai installé R en choisissant l'anglais comme langue d'installation mais je trouve les menus et les messages d'erreurs sont toujours en français !


Normal: il s'agit de la langue utilisée pour l'installation de R, pas l'environnement linguistique d'utilisation de R.

Quelqu'un pourrait me dire comment peut-on changer cela en anglais ?

J'ai regardé dans les doc d'aide et FAQs sur le site de R mais j'ai pas trop compris leur explication qui n'était pas très claire pour moi pour pouvoir changler la langue !

EN vous remerciant par avance et vous souhaitant d'agréables moments !


La réponse esr dans les FAQ pour Windows:

Code : Tout sélectionner

3.2 I want R in English (and not in French/Chinese/...)!

The default behaviour of R is to try to run in the language you run Windows in. Apparently some users want Windows in their native language, but not R. To do so, set LANGUAGE=en as discussed in Q2.2 and Q2.15, or in the Rconsole file.


Renaud

leon nitsche
Messages : 27
Enregistré le : 14 Jan 2009, 13:22

Messagepar leon nitsche » 18 Jan 2009, 15:15

Merci Renaud pour ta réponse.
J'ai bien vu les FAQ mais j'ai pas trop compris où je dois faire le changement ! Je suis novice dans l'utilisation de R et c'est vraiment pas très claire pour moi !

Voici ce qu'ils disent dans les FAQ (Q2.2 et Q2.15) pour changer la langue mais je dois dire que j'ai pas trop compris: (!)

2.2 How do I install R for Windows?

Versions of R as from 2.7.0 will only run on Windows 2000 or later. (R 2.6.2 was the last version for Windows 95. 98, ME and NT4.) There is no specific binary1 version for x64 Windows, but the standard 32-bit version works well enough. We only test on versions of Windows currently supported by Microsoft, mainly on XP SP3, Vista x64 and Windows Server 2003.

Your file system must allow case-honouring long file names (as is likely except perhaps for some network-mounted systems). A full installation takes up about 60Mb of disk space and a minimal one less than 20Mb.

If you want to be able to build packages from sources, we recommend that you choose an installation path not containing spaces. (Using a path with spaces in will probably work, but is little-tested.) Users of Vista installing for a single user using an account with administrator rights2 should consider installing into a non-system area (such as C:\R). If you are installing to a network drive, you should consider changing the default form of help during the install not to be Compiled HTML help: See Help is not shown for some of the packages. Installing to a network share (a filepath starting with \\machine\...) is not supported: such paths will need to mapped to a network drive.

To install use `R-2.8.1-win32.exe'. Just double-click on the icon and follow the instructions. If you have an account with Administrator privileges you will be able to install R in the Program Files area and to set all the optional registry entries; otherwise you will only be able to install R in your own file area. On recent versions of Windows you may need to confirm that you want to proceed with installing a program from an `unidentified publisher'.

After installation you should choose a working directory for R. You will have a shortcut to R-2.8.1\bin\Rgui.exe on your desktop and/or somewhere on the Start menu file tree, and perhaps also in the Quick Launch part of the taskbar. Right-click each shortcut, select Properties... and change the `Start in' field to your working directory.

You may also want to add command-line arguments at the end of the Target field (after any final double quote, and separated by a space), for example --sdi --max-mem-size=1Gb. You can also set environment variables at the end of the Target field, for example R_LIBS=p:/myRlib, and if you want to ensure that menus and messages are in (American) English, LANGUAGE=en.

It is also possible to install from an MSI file, which will be of interest only for system administrators. For how to build an MSI file, see the `R Installation and Administration Manual'.


Et la question 2.15:

2.15 How do I set environment variables?

Environment variables can be set for Rgui.exe and Rterm.exe in three different ways.

1. On the command line as name=value pairs. For example in the shortcut to Rgui you could have

"path_to_R\bin\Rgui.exe" HOME=p:/ R_LIBS=p:/myRlib


2. In an environment file .Renviron in the working directory or your home directory, for example containing the line

R_LIBS=p:/myRlib


To do so, set LANGUAGE=en as discussed in Q2.2 and Q2.15, or in the Rconsole file.

?
J'arrive pas à bien suivre ce qu'ils disent ! Où est-ce que je dois écrire "LANGUAGE=en ?
La console c'est bien la fenetre principale, là où on écrit les commandes où c'est ailleurs? ça n'a rien donné en écrivant dans la console "
LANGUAGE=en" , il me dit : "Erreur : objet "en" non trouvé"

Si quelqu'un arrive à bien comprendre leur explication je lui serais reconnaissant !

Renaud Lancelot
Messages : 2484
Enregistré le : 16 Déc 2004, 08:01
Contact :

Messagepar Renaud Lancelot » 18 Jan 2009, 16:11

Deux solutions "simples" (une fois qu'on les connaît):

Si tu as un raccourci vers R sur le bureau ou dans la barre de lancement, tu cliques bouton droit sur l'icone, tu sélectionnes "Propriétés" et tu ajoutes LANGUAGE=en à la fin du champ "Cible". Quand tu lances R, tu vas avoir qque chose comme ça

Code : Tout sélectionner

R version 2.8.1 (2008-12-22)
Copyright (C) 2008 The R Foundation for Statistical Computing
ISBN 3-900051-07-0

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

  Natural language support but running in an English locale

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.


au lieu de

Code : Tout sélectionner

R version 2.8.1 (2008-12-22)
Copyright (C) 2008 The R Foundation for Statistical Computing
ISBN 3-900051-07-0

R est un logiciel libre livré sans AUCUNE GARANTIE.
Vous pouvez le redistribuer sous certaines conditions.
Tapez 'license()' ou 'licence()' pour plus de détails.

R est un projet collaboratif avec de nombreux contributeurs.
Tapez 'contributors()' pour plus d'information et
'citation()' pour la façon de le citer dans les publications.

Tapez 'demo()' pour des démonstrations, 'help()' pour l'aide
en ligne ou 'help.start()' pour obtenir l'aide au format HTML.
Tapez 'q()' pour quitter R.


L'inconvénient de cette méthode est que tu dois recommencer la manip à chaque mise à jour de R. Pour éviter cela, tu peux ajouter une variable d'environnement dans la configuration de M$ Windoz:

(0) aller faire pipi avant de commencer

(1) Aller dans le paneau de configuration

(2) Choisir l'option "Système"

(3) Cliquer sur l'onglet "Avancé"

(4) Cliquer sur le bouton "Variable d'environement" (en bas de la fenêtre)

(5) Dans la fenêtere "Variables utilisateur" (celle du haut), cliquer sur le bouton "Nouveau"

(6) nommer la variable LANGUAGE (champ du haut) et lui donner la valeur en (champ du bas)

(7) faire OK deux fois

(8) aller boire une bière: tu l'as bien mérité !

Quand tu lances R:

Code : Tout sélectionner

ISBN 3-900051-07-0

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

  Natural language support but running in an English locale

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.


Dans les deux cas, note la phrase:

Code : Tout sélectionner

Natural language support but running in an English locale


Hope this helps !

Renaud

leon nitsche
Messages : 27
Enregistré le : 14 Jan 2009, 13:22

Messagepar leon nitsche » 18 Jan 2009, 20:03

Renaud Lancelot a écrit :Deux solutions "simples" (une fois qu'on les connaît):

Si tu as un raccourci vers R sur le bureau ou dans la barre de lancement, tu cliques bouton droit sur l'icone, tu sélectionnes "Propriétés" et tu ajoutes LANGUAGE=en à la fin du champ "Cible". Quand tu lances R, tu vas avoir qque chose comme ça

Code : Tout sélectionner

R version 2.8.1 (2008-12-22)
Copyright (C) 2008 The R Foundation for Statistical Computing
ISBN 3-900051-07-0

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

  Natural language support but running in an English locale

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.


au lieu de

Code : Tout sélectionner

R version 2.8.1 (2008-12-22)
Copyright (C) 2008 The R Foundation for Statistical Computing
ISBN 3-900051-07-0

R est un logiciel libre livré sans AUCUNE GARANTIE.
Vous pouvez le redistribuer sous certaines conditions.
Tapez 'license()' ou 'licence()' pour plus de détails.

R est un projet collaboratif avec de nombreux contributeurs.
Tapez 'contributors()' pour plus d'information et
'citation()' pour la façon de le citer dans les publications.

Tapez 'demo()' pour des démonstrations, 'help()' pour l'aide
en ligne ou 'help.start()' pour obtenir l'aide au format HTML.
Tapez 'q()' pour quitter R.


L'inconvénient de cette méthode est que tu dois recommencer la manip à chaque mise à jour de R. Pour éviter cela, tu peux ajouter une variable d'environnement dans la configuration de M$ Windoz:

(0) aller faire pipi avant de commencer

(1) Aller dans le paneau de configuration

(2) Choisir l'option "Système"

(3) Cliquer sur l'onglet "Avancé"

(4) Cliquer sur le bouton "Variable d'environement" (en bas de la fenêtre)

(5) Dans la fenêtere "Variables utilisateur" (celle du haut), cliquer sur le bouton "Nouveau"

(6) nommer la variable LANGUAGE (champ du haut) et lui donner la valeur en (champ du bas)

(7) faire OK deux fois

(8) aller boire une bière: tu l'as bien mérité !

Quand tu lances R:

Code : Tout sélectionner

ISBN 3-900051-07-0

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

  Natural language support but running in an English locale

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.


Dans les deux cas, note la phrase:

Code : Tout sélectionner

Natural language support but running in an English locale


Hope this helps !

Renaud


Merci encore Renaud et tu m'excuseras pour l'abus de bière mais j'aime bien ça :) !
C'est "simple pour toi, pour celui qui s'y connait mais c'est pas mon cas :( !

Quand je rajoute 'LANGUAGE=en' à la fin de chemin spécifié dans la Cible, ça donne un message d'erreur, celui-ci:

le nom'C:\Program Files\R\R-2.8.1\bin\Rgui.exe\LANGUAGE=en' spécifié dans le champ Cible n'est pas valide. Vérifiez que le chemin d'accès et le nom de fichier sont correct.


Pour la bière, je vais la laisser après la résolution du problème :) !

Renaud Lancelot
Messages : 2484
Enregistré le : 16 Déc 2004, 08:01
Contact :

Messagepar Renaud Lancelot » 18 Jan 2009, 22:46

Dans le champ cible, tu dois avoir qque chose comme:

Code : Tout sélectionner

C:\Program Files\R\R-2.8.1\bin\Rgui.exe LANGUAGE=en


C'est-à-dire, pas de slash (\) après Rgui.exe

Renaud

leon nitsche
Messages : 27
Enregistré le : 14 Jan 2009, 13:22

Messagepar leon nitsche » 18 Jan 2009, 23:47

Renaud Lancelot a écrit :Dans le champ cible, tu dois avoir qque chose comme:

Code : Tout sélectionner

C:\Program Files\R\R-2.8.1\bin\Rgui.exe LANGUAGE=en


C'est-à-dire, pas de slash (\) après Rgui.exe

Renaud


Ah, bah voilà, sans slash ça marche !
Merci beaucoup.
:D


Retourner vers « Questions en cours »

Qui est en ligne

Utilisateurs parcourant ce forum : Google [Bot] et 1 invité

cron