Rstudio hangs when loading XLConnect - r

I'm getting a hang in RStudio when I try and load XLConnect. It works find when I try from the same R console outside RStudio.
i.e. in RGui (64-bit)
R version 3.2.2 (2015-08-14) -- "Fire Safety"
Copyright (C) 2015 The R Foundation for Statistical Computing
Platform: x86_64-w64-mingw32/x64 (64-bit)
> library(XLConnect)
Loading required package: XLConnectJars
XLConnect 0.2-11 by Mirai Solutions GmbH [aut],
Martin Studer [cre],
The Apache Software Foundation [ctb, cph] (Apache POI, Apache Commons
Codec),
Stephen Colebourne [ctb, cph] (Joda-Time Java library)
http://www.mirai-solutions.com ,
http://miraisolutions.wordpress.com
But when I run in Rstudio the same R console hangs. I've confirmed that rJava loads so I think I have my Java environment correct
R version 3.2.2 (2015-08-14) -- "Fire Safety"
Copyright (C) 2015 The R Foundation for Statistical Computing
Platform: x86_64-w64-mingw32/x64 (64-bit)
> library(XLConnect)
Loading required package: XLConnectJars
Appreciate any thoughts on what the issue is - it works fine on my laptop so not sure what's different
Regards
Dave

Seems to be an Rstudio issue fixed in the latest version - I updated Rstudio to 0.99.491 (from an earlier 0.99.x release but not sure the version) and it now works fine.
edit - although it sometimes still appears to hang but eventually the package loads?

Related

RStudio Error: "C stack usage is too close to the limit" at R startup

Every time I open a new session in RStudio, I see the following error message (before I even run any of my code):
Error: C stack usage 7969360 is too close to the limit
I don't see this error when I open an R Console without RStudio.
Any advice on how to fix this?
In case it is helpful, here is some info:
R version 4.2.2 (2022-10-31) -- "Innocent and Trusting"
RStudio Version 2022.12.0+353 (2022.12.0+353)
Platform: x86_64-apple-darwin17.0 (64-bit)
Computer: macOS Ventura, Version 13.1
I have tried updated my macOS version, reinstalling R, and reinstalling R Studio.

knit to PDF not working R V4.0.0 RStudio V1.2.5042

Unable to get RStudio to knit to PDF post-RV4.0.0 update HTML, WORD work).
Error returned: Searching for luatex.dll, which does not seem to install following (i) install.packages('tinytex') (ii) tinytex::install_tinytex().
Curiously, luatex.dll is found in my older 3.5.3 and 3.6.3 .\TinyTeX\bin\win32 directories. rTools is current for R4.0.0, with path added per website. Similarly, pdflatex.fmt mising in install from 4.0.0. In all cases followed advice from Yihui Xie et al. websites.
Have tried several re-installs, including a full install of MikTeX. No joy.
tinytex Version is 0.22. basic session info is:
sessionInfo()
R version 4.0.0 (2020-04-24)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 18363)
I am puzzled because I have successfully installed tinytext etc on 3.X.X R and previous versions of RStudio, and knited PDFs (including use of bookkdown) with no problems. Thx in advance.

R Error in install.packages : permission denied

I'm trying to install packages employing the command install.packages() in Rstudio Version 1.1.453:
R version 3.5.0 (2018-04-23) -- "Joy in Playing"
Copyright (C) 2018 The R Foundation for Statistical Computing
Platform: x86_64-w64-mingw32/x64 (64-bit)
with R Version 3.5 in Windows 10:
platform x86_64-w64-mingw32
arch x86_64
os mingw32
system x86_64, mingw32
status
major 3
minor 5.0
year 2018
month 04
day 23
svn rev 74626
language R
version.string R version 3.5.0 (2018-04-23)
nickname Joy in Playing
I'm getting the following error:
Error in install.packages :
cannot open file 'C:/Users/Gabriel/Documents/R/win-library/3.5/file19281116cee/Rcpp/doc/Rcpp-attributes.pdf':
Permission denied
Thanks a lot for your help.
I solved it with this answer. It's R is installed as if it needs constant admin privileges. That answer shows the correct way of doing it without running into the problem again.
I ran into same problem, most times it is an antivirus shield issue! Ensure all shields are down, then retry installation.
I had the same problem and it gave me a headache but the Error with : Permission Denied, as you put it across can be solved by checking the antivus. R studio can be blacklisted by the antivirus, so look at the setting. I am using AVG and surely the application was blacklisted. When I removed it from th blacklist, packages were installed successfully

Two different R versions and invoking of older R version

I recently installed latest version of R(3.3.1) on my mac but somehow the R is still pointing to the old R version which I had. When R is invoked in command line it show the new version but on typing version in R environmnet the older(3.0.2) is shown.
What changes should be made so as to update to newer R version?
Also I deleted previous versions directories from Frameworks.
Additionally probably because of this issue I get an error when I start R studio.
ls /Library/Frameworks/R.framework/Versions/
3.3 Current
===========================
user1#my-mac:~$ R
Error in objects(db.pos, all.names = TRUE) :
2 arguments passed to .Internal(ls) which requires 3
R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-apple-darwin13.4.0 (64-bit)
....
....
Error in gzfile(file) : invalid 'encoding' argument
During startup - Warning message:
unable to restore saved data in .RData
> version
_
platform x86_64-apple-darwin10.8.0
arch x86_64
os darwin10.8.0
system x86_64, darwin10.8.0
status
major 3
minor 0.2
year 2013
month 09
day 25
svn rev 63987
language R
version.string R version 3.0.2 (2013-09-25)
nickname Frisbee Sailing
In Mac, point rstudio to the newer version of R using the RSTUDIO_WHICH_R environment variable.
export RSTUDIO_WHICH_R=/usr/local/bin/R

How do you update the R version in Revolution R Enterprise?

I just installed the latest MRO version (3.2.3)
When I open RGui, I see the following
R version 3.2.3 (2015-12-10) -- "Wooden Christmas-Tree" Copyright (C)
2015 The R Foundation for Statistical Computing Platform:
x86_64-w64-mingw32/x64 (64-bit)
However when I open up Revolution R Enterprise, I see that 3.2.2 is still loaded
Welcome to Revolution R Enterprise for Windows version 8.0 - 100% R and more...
Revolution R Enterprise for Windows Copyright © 2015 Microsoft Corporation
---------------------------------------------------------------------
R version 3.2.2 (2015-08-14)
How do I change this so that Revolution R Enterprise points to 3.2.3 instead of 3.2.2
I did a search here and on Google/Bing but found nothing.
You don't, at least not currently. RRE versions are tied to specific R version. 8.0 corresponds to 3.2.2.

Resources