`help.search()` returns error in RStudio - r

In RStudio,
help.search('slider')
Returns this error:
Error in vignette_type(Outfile) : Vignette product ‘NA’ does not have a known filename extension (‘NA’)
However:
Other searches (such as help.search('ARMA')) appear to be working correctly in RStudio.
Running help.search('slider')in the R for Mac OS X GUI works as expected.
Any ideas what the problem might be?
Setup:
MBP OS X Version 10.9.4
RStudio Version 0.98.978
R version 3.1.1 (2014-07-10) -- "Sock it to Me"

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.

RStudio crashes when running JDBC() function in the RJDBC package

Whenever I try to make a JDBC object:
jdbcDriver <- JDBC(driverClass="oracle.jdbc.OracleDriver",
classPath="~/ojdbc6.jar")
My RStudio immediately crashes with no warning with this popup
However, the code works perfectly in the terminal R environment outside of RStudio, so I am certain it is an RStudio issue.
OS: Mac OS High Sierra 10.13.6
latest version of RStudio (1.1.456) and R (3.5.1).
JDK version 1.8.0_191
Using ojdbc6.jar
I set JAVA_HOME in my terminal, but somehow it didn't "work" for RStudio.
So the fix was that I created an .Renviron file and put the following inside:
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_191.jdk/Contents/Home
That did the trick

RStudio not loading RevoScaleR on Ubuntu 16.04

Long story short:
Calling rxImport() works fine in a Terminal R session but fails when using RStudio, despite using the same installation of R.
Setup:
I'd like to use RevoScaleR functions like rxImport(...) on Ubuntu. I have an installation of RStudio and R done through package manager.
I've installed MS Rclient following the instructions here.
Everything seems to work as I can run in the terminal:
/opt/microsoft/rclient/3.4.3/bin/R$ ./R
R version 3.4.3 (2017-11-30) -- "Kite-Eating Tree"
Copyright (C) 2017 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
...
Microsoft R Open 3.4.3
The enhanced R distribution from Microsoft
Microsoft packages Copyright (C) 2018 Microsoft
Loading Microsoft R Client packages, version 3.4.3.0097.
Microsoft R Client limits some functions to available memory.
See: https://go.microsoft.com/fwlink/?linkid=799476 for information
about additional features.
...
Using the Intel MKL for parallel mathematical computing (using 2 cores).
Default CRAN mirror snapshot taken on 2018-01-01.
See: https://mran.microsoft.com/.
> R.home()
[1] "/opt/microsoft/rclient/3.4.3/runtime/R"
> rxImport()
Error in rxImport() : 'inData' must be specified.
So the function is loaded and available by default. Now I tell the RStudio to use this installation of R by adding the following at the end of ~/.profile :
RSTUDIO_WHICH_R="/opt/microsoft/rclient/3.4.3/bin/R/R"
Error:
When I run rstudio I get a R console in the IDE saying:
> R.home()
[1] "/opt/microsoft/rclient/3.4.3/runtime/R"
> rxImport()
Error in rxImport() : could not find function "rxImport"
Possible causes
I've found some threads with people complaining about MS packages not dealing properly with ~ and working directory (i.e. on a remote server), setwd() doesn't solve my issue, though.
Do you have any ideas on how to get RevoScaleR to work with RStudio? Thanks in advance.
An answer I got from Github:
https://github.com/rstudio/rstudio/issues/2455#issuecomment-375327109
try setting
R_LIBS_SITE=/opt/microsoft/rclient/3.4.3/libraries/RServer
in
/opt/microsoft/rclient/3.4.3/runtime/R/etc/Renviron

Cannot run R from terminal after upgrading to macOS Sierra

I recently updated my macbook to macOS Sierra (Version 10.12.3 (16D32)), and I am no longer able to run R directly from Terminal:
DN51ssqi:~ kjytay$ R
-bash: R: command not found
DN51ssqi:~ kjytay$ R --version
-bash: R: command not found
Opening R from the Applications folder or from RStudio works fine. Anyone experience this issue/has been able to fix it?
Here is my R version information:
platform x86_64-apple-darwin13.4.0
arch x86_64
os darwin13.4.0
system x86_64, darwin13.4.0
status
major 3
minor 3.2
year 2016
month 10
day 31
svn rev 71607
language R
version.string R version 3.3.2 (2016-10-31)
nickname Sincere Pumpkin Patch
This is just a guess, but I'm thinking this is probably an issue with your PATH settings, which might have been overwritten when you upgraded*. Seems worth a try at least. This is from the RStudio support pages**:
R from source (including MacPorts and Homebrew)
When R is installed from CRAN on OS X the R executable is installed at
/usr/bin/R. However, if R is installed directly from source or via a
package manager like MacPorts or Homebrew, then the R executable is
installed to either /usr/local/bin/R (Homebrew) or /opt/local/bin/R
(MacPorts). In order to support these variations, RStudio scans for
the R executable in the following sequence:
/usr/bin/R
/usr/local/bin/R
/opt/local/bin/R
If RStudio is not able to locate R by scanning these locations, it
will fall back to using whatever version of R is located at
/Library/Frameworks/R.framework/.
If RStudio is finding R OK, then you must have it at one of these locations. Make sure these locations are in your $PATH list:
In the Terminal:
echo $PATH
Will display your current PATHs list. If any of the locations in the RStudio quote are missing, you can see if that's where R is located by trying to specify that location. For example:
/usr/local/bin/R
If that works to start R, just add that location to your PATHs list:
export PATH=$PATH:/usr/local/bin
So that OSX knows where to find it!
* It's been noted elsewhere that homebrew breaks, for example, on upgrade to Sierra. Here's a blog post outlining some steps an R user might like to take after the upgrade: http://www.statsblogs.com/2017/01/26/upgrading-to-macos-sierra-nee-osx-for-r-users/
** Here's the support page where the quote is from https://support.rstudio.com/hc/en-us/articles/200486138-Using-Different-Versions-of-R

R: install.packages() doesn't work nor produce an error message

I am running R version 3.1.3 (2015-03-09) with RStudio 0.98.1103 under OS X 10.10.2 (Yosemite). I migrated to this machine recently and moved files and applications (R and profile files included) with OS X Migration assistant.
R has worked perfectly until I tried to install.packages(). The function initiates but it doesn't produce any printout or terminate. I tried different things:
I removed my .Rprofile file which indicates my package folder and restart R;
I tried different mirrors with install.packages('RMySQL', repos='http://cran.us.r-project.org');
I tried install.packages() both from shell and from R GUI;
I tried to upgrade all packages with RStudio.
I never encountered an error message of sort and none of the above worked or produced any result.

Resources