I saw the R-help to run some R programs in batch I used it like this> R CMD BATCH C:/Documents and Settings/melyakhlifi/Bureau/calcara.rErreur : erreur de syntaxe dans "R CMD" but without success!!!I don't work on linux but on windows IS it the same command ? _____________________________________________________________________________ [[alternative HTML version deleted]]
1. why do you need R BATCH on Windows? This is mostly useful when running on a remote (usually Linux) server... 2. why didn't you tell us about Windows in your first post ? 3. why do you not quote the path to your script? This way R can only read c:/Documents Petr elyakhlifi mustapha napsal(a):> I saw the R-help to run some R programs in batch I used it like this > >> R CMD BATCH C:/Documents and Settings/melyakhlifi/Bureau/calcara.r > Erreur : erreur de syntaxe dans "R CMD" > > but without success!!!I don't work on linux but on windows IS it the same command ? > > > _____________________________________________________________________________ > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >-- Petr Klasterecky Dept. of Probability and Statistics Charles University in Prague Czech Republic
On 5/14/2007 11:01 AM, elyakhlifi mustapha wrote:> I saw the R-help to run some R programs in batch I used it like this > >> R CMD BATCH C:/Documents and Settings/melyakhlifi/Bureau/calcara.r > Erreur : erreur de syntaxe dans "R CMD" > > but without success!!!I don't work on linux but on windows IS it the same command ?"R CMD BATCH" is meant to be run in a shell (e.g. cmd.exe), not in R. Duncan Murdoch
elyakhlifi mustapha wrote:> > I saw the R-help to run some R programs in batch I used it like this > >> R CMD BATCH C:/Documents and Settings/melyakhlifi/Bureau/calcara.r > Erreur : erreur de syntaxe dans "R CMD" > > but without success!!!I don't work on linux but on windows IS it the same > command ? >Yes, it is. You need to set up paths to R executables. -- View this message in context: http://www.nabble.com/Batch-tf3753072.html#a10606289 Sent from the R help mailing list archive at Nabble.com.
hello, I tried to run programs in BATCH like you told me but to read the results it's a lil hard first to read the results it's important to write down an outfile but when I do this I've got stil the same answer R version 2.4.1 (2006-12-18) Copyright (C) 2006 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. [Sauvegarde de la session précédente restaurée]> #programme pour calculer les caractères > > donParCara <- read.table("C:/Documents and Settings/melyakhlifi/Mes documents/feuilles excel/copi_donnees6.csv",header=TRUE,sep=";",quote="",dec=",") > #print(subset(donParCara, select = c(Id_Cara,Form_C,X))) > > > > #valeurs observées pour les caractères observés > > C103 <- as.numeric(as.character(subset(donParEssai, Id_Essai == 1006961 & Id_Cara == 103, c(Val_O,Surf_O))[,1]))Erreur dans subset(donParEssai, Id_Essai == 1006961 & Id_Cara == 103, c(Val_O, : objet "donParEssai" non trouvé Exécution arrêtée I thnik that it's a problem in the options but I don't know how to do correct the errors. _____________________________________________________________________________ Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail [[alternative HTML version deleted]]