Undo --no-restore in R - r

During the installation process I have set R to not restore the workspace and now want to undo this -
how is it done?
> sessionInfo()
R version 2.15.0 (2012-03-30)
Platform: x86_64-pc-mingw32/x64 (64-bit)
locale:
[1] LC_COLLATE=German_Austria.1252 LC_CTYPE=German_Austria.1252
[3] LC_MONETARY=German_Austria.1252 LC_NUMERIC=C
[5] LC_TIME=German_Austria.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base

If you are using RGui from a windows shortcut, edit the short cut to remove the --no-restore flag.
If you are using R through, Rstudio, look under Tools-->Options-->General and select the appropriate option
For other IDEs there should be similar ways to set start-up options.
The other option would be to reinstall R the way you would like it to be done.

Related

R studio not auto completing. New install

I've just had my IT department install R and R studio. However it isn't autocompleting. This isn't the end of the world but it's very annoying. Is there anything that I can do to rectify?
I have it on another machine here and it works (but that cannot download certain packages so I know it's possible in the company)
Let me know if there are certain things that I should add to the question to help you help me.
Cheers,
J
PS I can't access stackoverlow from work right now ( it thinks there's a virus in the site. So this has been posted on my phone and so it might be poorly formatted)
sessionInfo()
R version 3.1.2 (2014-10-31)
Platform: x86_64-w64-mingw32/x64 (64-bit)
locale:
[1] LC_COLLATE=German_Germany.1252 LC_CTYPE=German_Germany.1252 LC_MONETARY=German_Germany.1252
[4] LC_NUMERIC=C LC_TIME=German_Germany.1252
attached base packages:
[1] grid stats graphics grDevices utils datasets methods base
other attached packages:
[1] CHAID_0.1-2 partykit_1.0-5 ROSE_0.0-3
loaded via a namespace (and not attached):
[1] splines_3.1.2 survival_2.37-7 tools_3.1.2

Rterm.exe error in RStudio

I am using R 3.2.2 and RStudio 0.99.486 (latest version) under Windows 7 SP1 64 bit. I always get an error when I start RStudio:
the procedure entry point vsnprintf could not be
located in the dynamic link library R.dll
But I don't get any errors when I directly start R 3.2.2.
The R installed into C:/ProgramFiles/R/R-3.2.2/ (not the default path) and don't have other versions of R. RStudio is setup to use the installed R.
Except I get an error in RStudio, all my R codes can run in RGUI and RStudio.
Thanks for any suggestions to solve this annoying problem.
My session information
sessionInfo()
R version 3.2.2 (2015-08-14)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1
locale:
[1] LC_COLLATE=English_Australia.1252 LC_CTYPE=English_Australia.1252
[3] LC_MONETARY=English_Australia.1252 LC_NUMERIC=C
[5] LC_TIME=English_Australia.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] tools_3.2.2
> .libPaths()

In Windows 7x64R: set ghost script environment variable

What am I missing here, it works on another PC. From R Im trying to use Sys.setenv() to invoke ghost script. Then, normally I can use tools::find_gs_cmd() to check that it is set.
Heres the ghostscript exe:
> dir("C:/Program Files/gs/gs9.16/bin/")
[1] "gsdll64.dll" "gsdll64.lib" "gswin64.exe" "gswin64c.exe"
But when I try to set it I think it does NOT do it:
> Sys.setenv(R_GSCMD="C:/Program Files/gs/gs9.16/bin/gswin64c.exe")
> tools::find_gs_cmd("gswin64c.exe")
gswin64c.exe
""
If I use Sys.getenv() it is there on the list of environment variable all right, so Im a little unsure what is happening.
My system is:
> sessionInfo()
R version 3.1.3 (2015-03-09)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1
locale:
[1] LC_COLLATE=Danish_Denmark.1252 LC_CTYPE=Danish_Denmark.1252 LC_MONETARY=Danish_Denmark.1252 LC_NUMERIC=C
[5] LC_TIME=Danish_Denmark.1252
attached base packages:
[1] tools stats graphics grDevices utils datasets methods base

R language setting can't be change with "default writes" command on mac

I'm a mac user and want to change R locale to English.
I know defaults write should set R's locale on osx. But, strangely, the command doesn't work.
defaults write org.R-project.R force.LANG en_US.UTF-8
When I launch R by executing R.app, English messages are properly shown, but Terminal.app shows Japanese messages:
My Environment is as follows:
Mac OS 10.8.5
R version 3.0.1 (2013-05-16) -- "Good Sport" Platform: x86_64-apple-darwin10.8.0 (64-bit)
Result of sessionInfo() on Terminal:
> sessionInfo()
R version 3.0.1 (2013-05-16)
Platform: x86_64-apple-darwin10.8.0 (64-bit)
locale:
[1] ja_JP.UTF-8/ja_JP.UTF-8/ja_JP.UTF-8/C/ja_JP.UTF-8/ja_JP.UTF-8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
On R.app:
R version 3.0.1 (2013-05-16)
Platform: x86_64-apple-darwin10.8.0 (64-bit)
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] caret_5.17-7 grid_3.0.1 kernlab_0.9-18 lattice_0.20-15
As #plannapus wrote, starting R with Language=en R works well in my environment. See here.
Thank you for your help.
edit (2013/11/8)
According to gentle community replies, there seems to be several solutions. As for me, both of these ways works well.
Launching R console with specifying language as Language=en R (already mentioned previous post)
Set environment variable by adding just one line Language=en R to ~/.Renviron

calling `file.show` on a directory causing crash

I called file.show on a variable that contained a path instead of a file and R crashed.
When I brought it back up, I tested
file.show("~")
And I get a consistent crash.
Can anyone confirm? I'm getting an issue on both R 3.0 and R 2.15.3
R 3.0 - hangs indefinitely
> sessionInfo()
R version 3.0.0 (2013-04-03)
Platform: x86_64-apple-darwin10.8.0 (64-bit)
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] data.table_1.8.8
R 2.15.3 - crashes and cannot gracefully abort
R version 2.15.3 (2013-03-01)
Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit)
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
attached base packages:
[1] stats graphics grDevices utils datasets methods base

Resources