How about this?

name.length = 10
name = paste(sample(letters,name.length,T),collapse="")

Then you can use file.exists(), to check if the file already exists.




On Mon, Aug 11, 2008 at 12:28 PM, sara martino <martino@math.ntnu.no> wrote:

> Hei,
> is it possible to create from R a series of files with unique(random)
> names?
> I have tryed with file.create and dir.create but did not manage to do it.
> Thanks a lot for help
> Sara
>
>        [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help@r-project.org 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.
>

	[[alternative HTML version deleted]]

