[R] Prompt comes too late

Ralf Finne Ralf.Finne at syh.fi
Sun Jul 29 16:22:15 CEST 2007


Hi R fans

I am trying to make a program to ask the user to choose data file:

print("Choose data file please !")

matr=read.table(file.choose(),dec=".",header=TRUE)

The problem is that the prompt 
Choose data file please !   
comes after I have chosen the file.

What  am doing wrong?

Thanks in advance
Ralf Finne



More information about the R-help mailing list