RStudio - RevoScaleR (Windows) - r

Can this package be used for either (1) RStudio Desktop/Open; and/or (2) RStudio Server (also using SQL Server 2017 Enterprise)?
I'm primarily interested in RStudio Desktop, however can't appear to find anything online after about one hour of research.
When attempting to install the package in RStudio Desktop, I receive the error message:
install.packages("RevoScaleR",dependencies = TRUE, repos = 'http://cran.rstudio.com/')
Installing package into ‘C:/Users/Harvey/Documents/R/win-library/3.5’
(as ‘lib’ is unspecified)
Warning in install.packages :
package ‘RevoScaleR’ is not available (for R version 3.5.0)
Thanks in advance.

So you have the R version of 3.5.0. However, RevoScaleR is built on R 3.4.3. You can install any version before 3.4.3 and install the package again. Note that you need Microsoft R Client to be installed and this path can be given to RStudio. Look for the documentation here.
RStudio has a feature to change the version of R without uninstalling your current version. After installing the desired R version, you can go to Tools -> Global Options to change your version.

Related

Error while running a shiny app on ubuntu

I have made a shiny app which works fine on windows, but when I tried running the same on my ubuntu system the app exists abruptly and I get following error
Loading required package: TTR
Version 0.4-0 included new data defaults. See ?getSymbols.
Error in library(rstudio) : there is no package called ‘rstudio’
After this I tried installing the 'rstudio' package and I am getting the following message:
Warning in install.packages :
package ‘rstudio’ is not available (for R version 3.2.1)
My R version is: 3.2.1 and my RStudio version is: 0.99.467
Note: I am new to ubuntu and the only reason I shifted to ubuntu, was to to use shiny-server.
The rstudio package comes with the installation of RStudio (Desktop or Server). If you need to use the rstudio package, you probably need to install RStudio (Dekstop or Server version).
You can do that from here:
https://www.rstudio.com/products/rstudio/download-server/
That said, I'm not clear on why you would need to load the rstudio package.
That is because there is no package called rstudio (at least not on CRAN anyways). Either there is a typo and you really meant the rstudioapi package, or on your windows system you actually did install a package named rstudio that, however, was distributed from another source other than CRAN. I'd suggest try removing the line library(rstudio) and see if it works.

R install package RevoScaleR

In trying to install package "RevoScaleR", I get the following error. I have tried installing this package with various versions of R but get the same error every time. Does anyone have any idea why?
install.packages("RevoScaleR")
Warning in install.packages :
package ‘RevoScaleR’ is not available (for R version 3.1.2)
Any help is appreciated.
Just to update this post,to install the RevoScaleR package you need to install Microsoft R client, see here for details:
https://www.blue-granite.com/tutorials/sql-server-r-services
R Client includes the ScaleR (rx[…]) functions in the RevoScaleR package. I don't believe this package is open source so isn't available on cran, install.packages() therefore won't work.
The RevoScaleR package is only available if you install the Microsoft R Client or if you use Microsoft RStudio Server via Azure. After you install this you don't need to do install.packages("RevoScaleR") for it is already installed.
R Studio will automatically have the R version [64-bit] C:\Program Files\Microsoft\R Client\R_SERVER under "Global options"
The link below gives more detail information about Microsoft R client. Once you install Ms R client and update the R-studio path to the R client you don't need to install 'RevoScaleR' anymore, it comes pre-installed with Microsoft R client. Read the link fore more.
https://msdn.microsoft.com/en-us/microsoft-r/r-client-get-started
I am not sure what R version you are currently using but the latest stable version is 3.1.2. If the package installation warning is telling that the package you're trying to install is not available, that basically means that the package developer has not yet made a version of the package that is compatible with the R version you're currently running.
If you really need to use this package (if your work heavily depends on it and you are on some kind of deadline) I would advise to install an earlier version of R (like 3.1.1 or 3.1) and do your work with it.
I would also suggest that you reach out to Revolution Analytics, as suggested by Andrie.
Thanks!
You just have to set the propper CRAN repos:
options("repos" = c(CRAN = "https://mran.microsoft.com/"))
and then
install.packages("RevoScaleR")
will run properly.

I am trying to install package manipulate : message = not available for r 3.1.1

windows 7 -pro
r studio 0.98.945
r 3.1.1
I am trying to install manipulate:
install.packages("manipulate").
Warning in install.packages :
package ‘manipulate’ is not available (for R version 3.1.1)
is this package not available or is something wrong in my machine or how to get it ?
thanks for all update/help
best regards, Guy Przytula
It's not on CRAN. It's usually installed as part of the RStudio install process. I'd suggest to re-install RStudio.
Another possibility is offered by the RStudio support:
1.) The easiest workaround is to just install the package manually from its location in Program Files - you can zip up the C:\Program
Files\RStudio\R\library\manipulate folder and install it using
install.packages() - this will get the manipulate package installed
and running.
If that doesn't solve your issues, you should post at the RStudio support forum.

Can I use package 'imputation' in R version 3.0.3?

I am using R version 3.0.3.
I would like to install the package "imputation". I would like to re-run an analysis I used last year in R version 3.0.2.
I also have a new computer so I am re-installing my packages. I would like to install the package "imputation".
install.packages("imputation")
However, I received the following error:
Installing package into ‘\\oxdc/userdata/jolyon.faria/Documents/R/win-library/3.0’
(as ‘lib’ is unspecified)
Warning in install.packages :
package ‘imputation’ is not available (for R version 3.0.3)
How can I work around this problem? I thought I could perhaps run two versions of R on the same computer but this may throw up its own problems.
Always check CRAN for package problems:
http://cran.r-project.org/web/packages/imputation/
You might be able to get it working on 3.0.3 or later by installing from source via the source archive.
Or contact the maintainer and ask them if they can fix the problem that caused the removal from CRAN.

Error in installing packages from RStudio

I have been trying to install the package "doby" from RStudio (ver 0.98.501 ) on ubuntu 13.04 but it keeps throwing the following warning and the package does not get installed.
Warning in install.packages :
package ‘doBy’ is not available (for R version 2.15.2)
I have followed all the instructions given here :
http://www.r-bloggers.com/installing-r-packages/
Can someone please suggest where I might be going wrong ?
If you are on Ubuntu, please see this README for Ubuntu from CRAN --- it will allow you to get to the current version of R (today 3.0.2, in a few days 3.0.3) with mininal effort.
Once you have a current R version, getting the doBy package (which depends on it) installed is a piece of cake too.
If however you prefer to stay with your version of R, you can manually fetch an older version of doBy from its CRAN archive. Download to, say, /tmp and run R CMD INSTALLby hand on it.
From http://cran.r-project.org/web/packages/doBy/index.html, package doBy depends on R version 3.0 and above. Your R version is 2.15.2. You will need to install a later version of R, and then change the settings in Rstudio to target the updated version.

Resources