Is there a way for the dialogue window that pops up after file.choose()
is run to display a custom title, similar to X <- menu(files, graphics=TRUE, title="Choose file X")
?
Right now my code requires several files be loaded.
X <- read.csv(file.choose())
Y <- read.csv(file.choose())
Z <- read.csv(file.choose())
At the moment I'm just using my (human) memory to know which files to choose for the first window, the second window, and the third window, but I'd like the window to show which object X
Y
or Z
the current window's file will be imported to. I can move the window aside to see which line of code the console is up to, but that seems pretty inelegant.
I've tried X <- read.csv(file.choose(new=c("Choose X")))
for example but that doesn't seem to do anything.