Install rPython under windows - r

I tried to install rPython under windows with install.packages("rPython"). However I am getting an error that the package does not exist.
Warning in install.packages :
package ‘rPython’ is not available (for R version 3.2.5)
In the installation doc of the package I can only find this:
WINDOWS SYSTEMS
===============
On a Windows system, the package can only be installed from source at this time. Details to come.
Is there a work-around to work with Python in R?

Try 'rPython-win' if you use windows.
rPython works in Linux.
https://github.com/cjgb/rPython-win

Related

Having Issues installing tabulizer package in R

I had a script working with tabulizer, but had to clean my hard drive and reinstall R, and now I cant seem to even download and access the tabulizer library. I am now using R version 4.1.2 64 bit, and am thinking maybe I need to use an earlier version of R??? Here is the error message I get when I try and install tabulizer.
install.packages("tabulizer")
Installing package into ‘C:/Users/cdonner/Documents/R/win-library/4.1’
(as ‘lib’ is unspecified)
Warning in install.packages :
package ‘tabulizer’ is not available for this version of R
A version of this package for your version of R might be available elsewhere,
see the ideas at
https://cran.r-project.org/doc/manuals/r-patched/R-admin.html#Installing-packages
I have tried to go to go to Cran (https://cran.r-project.org/src/contrib/Archive/tabulizer/) and download and unzip the libraries to my directory, but then I get an errors again. Any ideas? Thanks.
Enter this into the command window!
remotes::install_github(c("ropensci/tabulizerjars", "ropensci/tabulizer"), INSTALL_opts = "--no-multiarch")
It is not on CRAN.
You have to install using
ghit::install_github("ropensci/tabulizer")
or
devtools::install_github("ropensci/tabulizer")
github
I have just come to dealing with the same problem, but I got to solve it through the following steps:
the tabulizer package requires a Java environment. You need to download Java 64-bit or Java 32-bit through.
Make sure before that your windows/ mac is 32 bit or 64 bit by using the function sessionInfo().
Install the rJava package in R.
Create the Java environment through the command: Sys.setenv(JAVA_HOME="C:/Program Files/Java/jdk-18/")
Attention: the path of the file in step 3 is for java 64. the path for java 32 would be Sys.setenv(JAVA_HOME="C:/Program Files (x86)/Java/jdk-18/").
The other thing is that jdk-18 changes depending on everylaptop, in my case it is jdk-18, in your case it could jdk-17 for example.
Finally activate the library: library(rJava)
Voila. rJava and tabulizer work smoothly and nicely.
Got the same problem. (A lot) Packages were missing
I had to update R
Install java for R
Install Rtools42 from CRan
Install remotes
before running the command of #Dunbar111
remotes::install_github(c("ropensci/tabulizerjars", "ropensci/tabulizer"), INSTALL_opts = "--no-multiarch")

R - Install.Packages failure?

the below shows my attempt to install a package in R using install.packages from a tar.gz but I get an error which is rather unhelpful. Any ideas?
The 127 error message means that there is no C/C++ compiler accessible for the build process in install.packages().
In order to install R packages from source in the Windows operating system, one must first install the R Windows Tools. RTools for Windows may be downloaded from the CRAN RTools for Windows Download Page.

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.

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.

LOCAL R Package not running because of missing doMC dependancy

I am trying to get a local package to work but it depends on doMC which is only available for Mac and I don't have a Mac. Is there any way I can still make the package work? I use the following code:
install.packages("~/R/AMT/Code/CLVTools_1.0.5.tar.gz",repos=NULL,type="source")
After running the code I get the following error message:
Installing package into ‘C:/Users/alexa_000/Documents/R/win-library/3.0’
(as ‘lib’ is unspecified)ERROR: dependency 'doMC' is not available for package 'CLVTools'
* removing 'C:/Users/alexa_000/Documents/R/win-library/3.0/CLVTools'
Warning in install.packages :
running command '"C:/PROGRA~1/R/R-30~1.2/bin/x64/R" CMD INSTALL -l "C:\Users\alexa_000\Documents\R\win-library\3.0" "C:/Users/alexa_000/Documents/R/AMT/Code/CLVTools_1.0.5.tar.gz"' had status 1
Warning in install.packages :
installation of package ‘C:/Users/alexa_000/Documents/R/AMT/Code/CLVTools_1.0.5.tar.gz’ had non-zero exit status
Does anyone have any ideas how to run the package anyways?
Any kind of help highly appreciated
Based on the documentation, that package should run on any Unix system, not just OS X.
Your best bet is to install a virtual machine and put a Linux distro on it, or dual-boot your Windows PC with Linux.
More generally, if you are going to be doing a lot of data processing with open source tools like R, Linux is your friend.

Resources