RStudio crashes with call to getURL in RCurl - r

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

Related

Unable to install lmtest package

I'm unable to download packages in R when using a Mac. I've tried the simple suggested solutions. Please help.
ERROR: compilation failed for package ‘lmtest’
* removing ‘/Users/Saundy/Library/R/3.4/library/lmtest’
Warning in install.packages :
installation of package ‘lmtest’ had non-zero exit status
The downloaded source packages are in
‘/private/var/folders/b7/6zytq47j2k5d3knkv0zjtzbm0000gn/T/RtmpMY0uuf/downloaded_packages’
R version 3.4.2 (2017-09-28)
Platform: x86_64-apple-darwin13.4.0 (64-bit)
Running under: macOS High Sierra 10.13.1
Matrix products: default
BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib
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] compiler_3.4.2 tools_3.4.2 yaml_2.1.14

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

Can't connect to a local database using Monetdb.R

I'm trying to set a local connection to a database using Monetdb.R, but for some reason it is not working. I'm using the latest version of monetdb (MonetDB5 64 bits "Jan2014-SP3", 2014-07-25 release) in a Windows 7.
Here it is a short reproducible example:
> library(MonetDB.R)
Carregando pacotes exigidos: DBI
Carregando pacotes exigidos: digest
> conn <- dbConnect(dbDriver("MonetDB"), "monetdb://localhost/demo")
Error in .mapiRead(con) : ERROR reading MAPI block header (0)
I haven't seen this error occuring with other users...
> sessionInfo()
R version 3.1.1 (2014-07-10)
Platform: x86_64-w64-mingw32/x64 (64-bit)
locale:
[1] LC_COLLATE=Portuguese_Brazil.1252 LC_CTYPE=Portuguese_Brazil.1252 LC_MONETARY=Portuguese_Brazil.1252
[4] LC_NUMERIC=C LC_TIME=Portuguese_Brazil.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] MonetDB.R_0.9.4 digest_0.6.4 DBI_0.3.0
loaded via a namespace (and not attached):
[1] tools_3.1.1
MonetDB.R 0.9.5 has been released to CRAN. Windows binary distributions should be available shortly.

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

diff() fails on zoo object

While working on a new project in R, I wrote the following code:
sp500 <- get.hist.quote("^GSPC",start=(today <- Sys.Date())-735,quote="Cl")
lsp500 <- log(sp500)
rlsp500 <- diff(lsp500)
The problem is the diff() function, it produces the following error:
Error in MATCH(x, x) : could not find function "MATCH"
All other code executes without problems. I'm using RStudio and R version 2.15.2 (2012-10-26) -- "Trick or Treat" on Mac OSX 10.8.2.
> sessionInfo()
R version 2.15.2 (2012-10-26)
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
other attached packages:
[1] tseries_0.10-30
loaded via a namespace (and not attached):
[1] grid_2.15.2 lattice_0.20-10 quadprog_1.5-4 tools_2.15.2 zoo_1.7-9
What am I missing?
tseries::get.hist.quote returns a zoo object by default, but the tseries package doesn't attach zoo, so zoo::MATCH isn't found. I assume zoo::MATCH is used in diff.zoo or one of the functions called by it.
Attaching zoo (via library(zoo)) will fix the problem.

Resources