R integration in Tableau Online v9 - r

I'm a trying to publish my tableau 9 workbook into tableau online.
The problem is that I have integrated some R script in my workbook. It's working fine on my desktop and I have install Rserve.
When I try to publish (on tableau online) it return this error:
An unexpected error occurred. If you continue to receive this error please contact your Tableau Server Administrator.
TableauException: No Rserve connection configured.
Do you know how we can make it work with tableau Online (not server)

R connections are not supported in Tableau Public and Tableau Online. Reference the R implementations notes at http://kb.tableau.com/articles/knowledgebase/r-implementation-notes.

Related

Using R32bit from PowerBI

I am using PowerBI for report server (64bit), and I need to access information in a 32bit ODBC database. I want to use an R Script to do this, but I have not been able to find the way of indicating PowerBI to use my 32bit R to do this, as it autoimatically chooses the 64bit R I have installed.
How can I indicate to PowerBI that it should use a 32Bit R installation instead of a 64bit?
R data sources don't support refresh in Power BI Report Server. https://learn.microsoft.com/en-us/power-bi/report-server/data-sources
For Power BI Desktop you configure the R home directory and it will run whatever you install there.

Can no longer save R/RStudio scripts on OneDrive - Windows

R version: 4.0.3
RStudio version: 1.3
Windows 10, 1909
At my work I have to use OneDrive to store all my files and R scripts. This has worked fine up until recently. Now I get an error message when trying to save or modify an R script. I can create a new script and save it once, but if I try to make changes and save it again the error prevents me from doing so.
The error message in RStudio is:
"The create operation failed because the name contained at least one mount point which resolves to a volume to which the specified device object is not attached"
Not the most helpful error message.
The same behavior happens in R itself, but the error message just says it cannot save.
I have seen some talk online about this being related to that latest Windows 10 version (1909), but I started to experience the issue about 2 weeks before my computer updated to 1909. Besides, my work will not allow a roll back to the previous version.
Microsoft's OneDrive team failed to provide any help on this because they see it as an error on the R/RStudio side.
Anyone else experiencing this? Any solution?

Could there be any language issue with a ODBC in R with an Access DB?

I am using an R Script which connects to a local Access database. For that, I used the 'odbc' package in R and created an odbc Driver in Windows. It works well on my machine.
The issue I have is, that it can't connect to the database when running the script on a foreign computer with different language settings than English. Both machines are running Windows 64-bit with Access and R on 64-bit. Running following Code:
library(odbc)
con <- dbConnect(odbc::odbc(), "AccessDB")
results in following error message:
Error in connection_info(ptr) : nanodbc/nanodbc.cpp:1072:
I didn't find a solution yet, I am thinking of using another database.
I received the same error today on a setup that usually works. After downgrading the odbc-package to 1.1.6, it works fine again.

Redshift JDBC connection crashes on second opening in R

I am using the RJDBC package to connect to AWS Redshift from an EC2 ubuntu instance.
I can successfully connect using the JDBC() call, retrieve/insert rows and then close the connection.
However, when I re-open a second connection in the same R session, R crashes with a segmentation fault. This happens in both R Studio and console R. I'm using conda to manage the R.
I have tried the connection using the native redshift jar provided by Amazon and also another jar from Progess Software. I get the same effect with both drivers: first connection is fine, subsequent connections crash.
I've installed the latest JVM v8. I had seen some other threads that suggested installing v6 as a workaround, but unfortunately that is no longer available at the oracle site.
My gut feeling is that Java has a weird interaction with R, but I'm at a loss as to how to proceed.
OK, I solved this myself and thought I'd record in case this is useful to others.
The problem was really with rJava not re-initialising the JVM correctly.
I added the following line before opening a database connection:
rJava::.jinit(force.init = TRUE)
Now I can open and close connections without issue using RJDBC

How to connect to remote server from R studio

I need to connect to Unix server. I went through some sites and believe I may need to use 'ODBC', but not sure how.
Basically, I want some syntax which is equivalent of "RSUBMIT" in SAS. I want all the processing to be done in Remote Server as done by "RSUBMIT" command in SAS. I don't want to download the dataset to my local pc.
Can you kindly help me if there is any way to achieve the same in R studio?
I am running R studio -0.98.1102 and R -3.1.2.
There is a sas dataset on the server that I need access to.
In SAS I connect to server the following way-
%let remhost=sasgrid.app.xxxx.com 7554;
signon remhost user=_prompt_ password=_prompt_;
I am trying to build a tree model on the dataset that is present on the server. The server does not have R or Rstudio.
Kindly let me know if you need any other information.
Regards,
Rajat

Resources