Hi Ivan
I tried your examples and they behave as expected. Second one opens D:/ and
third should be setwd("D:/Data/") to open in Data folder.
> sessionInfo()
R Under development (unstable) (2019-07-21 r76854)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 18363)
S
On 02/03/2020 9:25 a.m., Agha Babar Khan wrote:
Dear R,
Run following commands and you will find last two command result is same.
n1 <- 1
print(n1)
typeof(n1)
is.integer(n1)
is.numeric(n1)
n1 <- as.integer(n1)
print(n1)
typeof(n1)
is.integer(n1)
is.numeric(n1)
Please read the help page for
Dear R,
Run following commands and you will find last two command result is same.
n1 <- 1
print(n1)
typeof(n1)
is.integer(n1)
is.numeric(n1)
n1 <- as.integer(n1)
print(n1)
typeof(n1)
is.integer(n1)
is.numeric(n1)
Regards,
Agha Babar Khan
[[alternative HTML version deleted]]
__
Thank you Duncan.
I tried that through RStudio 1.2.5019 with R 3.6.2 on Win10.
And what I did not mention is that I always cancelled the file.choose()
actions, meaning I did not navigate to another folder.
This does not quite fit what you said, but I might have misunderstood
you, or RStudio overr
On 03/03/2020 10:47 a.m., Ivan Calandra wrote:
That's what I was about to answer but tried first and it did not work.
Now I tried more and noticed an unexpected behavior:
getwd()
[1] "C:/Users/.../Documents"
file.choose() ## opens in "C:/Users/.../Documents" as expected
setwd("D:/")
getwd()
[1]
That's what I was about to answer but tried first and it did not work.
Now I tried more and noticed an unexpected behavior:
getwd()
[1] "C:/Users/.../Documents"
file.choose() ## opens in "C:/Users/.../Documents" as expected
setwd("D:/")
getwd()
[1] "D:/"
file.choose() ## unexpectedly, opens in "C
Hello,
You must set the directory manually.
old_dir <- getwd()
setwd('path/new/dir')
file.choose()
#other stuff, if necessary end with
setwd(old_dir)
Hope this helps,
Rui Barradas
Às 15:29 de 03/03/20, Dennis Weygand escreveu:
How do I change the default directory that file.choose() (Win
On 3/3/20 7:29 AM, Dennis Weygand wrote:
How do I change the default directory that file.choose() (Windows-10) uses?
?setwd
--
David
D.P. Weygand
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list -- To UNSUBSC
How do I change the default directory that file.choose() (Windows-10) uses?
D.P. Weygand
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEAS
9 matches
Mail list logo