R (beginner) : Using R functions in excel (RExcel) - r

I have coded a project in R and I would like to export my functions to R.
Is there an add-in or any other way enabling such functionality ?
Edit
After Dabbiemiller's answer I followed the installation procedure and I successfully installed rcom and RExcel. However I am not able to use it. I have the following error message when trying to start RExcel in Excel 2010:
There seems to be no R process connected to Excel
Could someone help me with this latest problem please?
Many thanks

From my first google search, here's a try : http://rcom.univie.ac.at/download.html#RExcel.
Good Luck.

Related

R codes to call from TERR

I am trying to write code in TERR to call r, Kindly suggest me the list of packages that I can use. I found Rinr, SpotfireUtils, Sdatasets are not available for download in r now, if anyone have the same kindly share it.
Your question couldn't be more vague. Here's some good places to start.
TIBCO Enterprise Runtime for R (TERR)
TIBCO Enterprise Runtime for R Technical Documentation which has everything from compadibility to how-to install certain packages.

How to use R packages in Power BI?

I have plotted the graph using a code in R using library function which is part of certain package.
I want to use this code in powerbi to plot the graph. But I am not able to add the package (library function) in power bi?
For a Power BI Desktop scenario, it calls the R Installation specified in the Power BI Options. So you need to add the packages you want via that R Installation.
For an app.powerbi.com scenario, you are limited to the list of packages they support, ref:
https://powerbi.microsoft.com/en-us/documentation/powerbi-service-r-visuals/
Just to clarify, are you trying to install packages or add packages that you already have into R?
Unfortunately Power BI isn't an IDE for the R language, so you will need to install the packages that you want via your R IDE or command prompt.
If you are trying to use packages that are already installed on your machine, for example, the package plotrix, then you can use the R script editor in the Visualisations tab like this:
require(plotrix)
or
library(plotrix)
Please post an update to show if this has helped you. :)
Was just now gone through the same problem: everything was loading fine except the visual created with R which required me to use ggplot2 and it was giving an error saying
there is no package called ggplot2
In order to solve it, opened RStudio and in the console ran
install.packages("ggplot2")
Then, went back to PowerBI and clicked "Atualizar" (which means "Update" in portuguese)
and the visual showed up without any errors.

Can't get madlib.forest_train() in Rstudio by using PivotalR library

I have configured RStudio to run R code natively on Greenplum. I have searched online but I couldn't find answer to the problem I am facing at the moment.
I have imported the library(PivotalR) and library(RPostgreSQL). But, when I type madlib it just comes up with few of the functions:
The Greenplum database has also been configured with Madlib functions including madlib.forest_train, which does not show up in RStudio. I am assuming it has something to do with the PivotalR package for RStudio. Is there a way to make the forest_train work directly from RStudio?

Error: Unable to establish connection with R session

I am having trouble pulling down data sets from the web (https://api.fda.gov) FDA API. The connection is fine and it appears generate more than 4000 JSON records. The problem is, when it is done, R gives me the below error and I am no longer able to do anything in RStudio - I basically have to force quit. I've seen references to similar issues, but haven't been able to find a solution.
Error: Unable to establish connection with R session
I assume that you are using RStudio? There is a problem with RStudio and pulling large data sets. See here: Wang's Tech Blog and here: RStudio Support.
I suggest just using R in the terminal when you run scripts that pull large data-sets.
I was able to solve all problems by deactivating/deinstalling the antivirus software (Avast)
I also ran into this error. Uninstalling avast did not work for me. I uninstalled r and r studio and reinstalled r and r studio and this solved my problem.

writing VBA code to call R script

I've downloaded and installed Rconn as well as Rexcel. The API appears to be working as I am able to copy my code from R into Excel and then, through the use of the API GUI I am able to extract values for one of my matrices.
The problem I'm having is within VBA. When I try and run the following line:
RInterface.StartRServer
I get the following error message: "Run-time error'424': Object required"
Would anyone be able to help me understand why I'm getting this error? Am I perhaps meant to load something from "Tools/References"?
Any help would be greatly appreciated
Thanks
Mike
I managed to sort it out. It was a reference problem. Once the rconn and RExcel are install you have to go to tools>References>RExcelVBAlib.
This will then allow you to use RExcel within VBA

Resources