Hi,

I realized that my first message and the script were (maybe) too long and
difficult to read.
So I tested this shorter one :

------------------------------------- 

setwd("D:/RWork")
chemin<-"d:/Mydata/"
relrfichiers<-dir(chemin, pattern=".P")
rfichiers<-paste(chemin,relrfichiers, sep='')

tfichiers<-rfichiers
save("tfichiers", file="tfichiers.r", ascii=TRUE)

if (file.exists("tfichiers.r"))
  {
    tfichiers<-load("tfichiers.r")
    nfichiers<-setdiff(rfichiers,tfichiers)
  }

------------------------

The result is :
nfichiers is equal to rfichiers
and when I ask tfichiers, I obtain ... "tfichiers" :-(

I read the ?save and saw the warning about the arguments but I have no idea
how to solve this problem which must be a basic one (but do not forget that
I'm a newbye and that I'm french :-)

Thans again for your comments and help,
Ptit Bleu.

-- 
View this message in context: 
http://www.nabble.com/Problem-with-save-or-and-if-%28I-think-but-maybe-not-...%29-tf4333945.html#a12343633
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help@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.

Reply via email to