calling `file.show` on a directory causing crash - r

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

Related

Graphics API version mismatch

I have a big problem
I update R to the latest version.
After updating, every time i try to plot something with whatsoever kind of graphic function( even with the basic plot) i get this error
Error: Graphics API version mismatch
these are my session info
R version 3.4.1 (2017-06-30)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows >= 8 x64 (build 9200)
locale:
[1] LC_COLLATE=Italian_Italy.1252
[2] LC_CTYPE=Italian_Italy.1252
[3] LC_MONETARY=Italian_Italy.1252
[4] LC_NUMERIC=C
[5] LC_TIME=Italian_Italy.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods
[7] base
loaded via a namespace (and not attached):
[1] compiler_3.3.2 tools_3.3.2
Note: no visible binding for global variable 'x'
Note: no visible binding for global variable 'envir'
All packages installed are updated to the latest version available

rstudio cannot run knitr

I've updated RSTUDIO to 1.0.143 and now knitr will not work:
Beginning of messages:
evaluate 0.8 is required but 0.7 is available
htmltools 0.3.5 is required but 0.2.6 is available
jasonlite ...
base64encode ...
rprojroot 1.0 is not available
I have tried stuff like update.packages() update.packages("evaluate") install.packages("evalute") (which installs version 0.7) on a few repositories without luck. (Global.rstudio, USA (IA))
I don't understand the ecosystem and I'm not finding any useful info from knitr or rstudio websites - how to I proceed?
sessionInfo()
R version 3.1.2 (2014-10-31)
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] knitr_1.10.5

RStudio crashes with call to getURL in RCurl

I am using the latest stable release of R (3.2.0) with RStudio (0.98.1103) on Mac OS 10.10.3.
When calling getURL from the RCurl package RStudio terminates with a fatal error.
This does not happen when using R from the command line, only in RStudio.
library("RCurl")
getURL("http://www.omegahat.org/RCurl/")
Checking the output of sessionInfo(), system.file(), and .libPaths() after library("RCurl") does indeed lead me to believe I am using the same version of R and RCurl in both scenarios.
Executing R from the command line:
> library("RCurl")
Loading required package: bitops
> sessionInfo()
R version 3.2.0 (2015-04-16)
Platform: x86_64-apple-darwin13.4.0 (64-bit)
Running under: OS X 10.10.3 (Yosemite)
locale:
[1] en_GB.UTF-8/en_GB.UTF-8/en_GB.UTF-8/C/en_GB.UTF-8/en_GB.UTF-8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] RCurl_1.95-4.6 bitops_1.0-6
> system.file()
[1] "/Library/Frameworks/R.framework/Resources/library/base"
> .libPaths()
[1] "/Library/Frameworks/R.framework/Versions/3.2/Resources/library"
and then from inside RStudio:
> library("RCurl")
Loading required package: bitops
> sessionInfo()
R version 3.2.0 (2015-04-16)
Platform: x86_64-apple-darwin13.4.0 (64-bit)
Running under: OS X 10.10.3 (Yosemite)
locale:
[1] en_GB.UTF-8/en_GB.UTF-8/en_GB.UTF-8/C/en_GB.UTF-8/en_GB.UTF-8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] RCurl_1.95-4.6 bitops_1.0-6
loaded via a namespace (and not attached):
[1] tools_3.2.0
> system.file()
[1] "/Library/Frameworks/R.framework/Resources/library/base"
> .libPaths()
[1] "/Library/Frameworks/R.framework/Versions/3.2/Resources/library"
Any help greatly appreciated.
This seems to have been fixed with upgrading to Mac OS 10.10.5, RStudio Version 0.99.489 and the latest R 3.2.3

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

Undo --no-restore in 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.

Resources