installation of r java shows error 'not a valid Win32 application' - rjava

I have a problem while loading rjava:
Downloading GitHub repo SantanderMetGroup/loadeR.java#master
from URL https://api.github.com/repos/SantanderMetGroup/loadeR.java/zipball/master
Installing loadeR.java
"C:/PROGRA~1/R/R-34~1.3/bin/i386/R" --no-site-file --no-environ --no-save \
--no-restore --quiet CMD INSTALL \
"C:/Users/Dhruv/AppData/Local/Temp/RtmpEvMOHF/devtools28bc1ec54d4d/SantanderMetGroup-loadeR.java-14fcdf1" \
--library="C:/Users/Dhruv/Documents/R/win-library/3.4" --install-tests
* installing *source* package 'loadeR.java' ...
** R
** inst
** preparing package for lazy loading
Error: package or namespace load failed for 'rJava':
.onLoad failed in loadNamespace() for 'rJava', details:
call: inDL(x, as.logical(local), as.logical(now), ...)
error: unable to load shared object 'C:/Users/Dhruv/Documents/R/win-library/3.4/rJava/libs/i386/rJava.dll':
LoadLibrary failure: %1 is not a valid Win32 application.
Error : package 'rJava' could not be loaded
ERROR: lazy loading failed for package 'loadeR.java'
* removing 'C:/Users/Dhruv/Documents/R/win-library/3.4/loadeR.java'
In R CMD INSTALL
Installation failed: Command failed (1)
Downloading GitHub repo SantanderMetGroup/loadeR#master
from URL https://api.github.com/repos/SantanderMetGroup/loadeR/zipball/master
Installing loadeR
"C:/PROGRA~1/R/R-34~1.3/bin/i386/R" --no-site-file --no-environ --no-save \
--no-restore --quiet CMD INSTALL \
"C:/Users/Dhruv/AppData/Local/Temp/RtmpEvMOHF/devtools28bc49114ff9/SantanderMetGroup-loadeR-fb63df6" \
--library="C:/Users/Dhruv/Documents/R/win-library/3.4" --install-tests
ERROR: dependency 'loadeR.java' is not available for package 'loadeR'
* removing 'C:/Users/Dhruv/Documents/R/win-library/3.4/loadeR'
In R CMD INSTALL
Installation failed: Command failed (1)

Related

Failed to install ffmpeg. Failed to download resource "x265"

I was trying to run "brew install ffmpeg" and two download links failed. So it failed the installation.
Those are the links that aren't working:
==> Downloading https://mirrors.edge.kernel.org/pub/software/scm/git/git-htmldocs-2.28.0.tar.
==> Downloading https://bitbucket.org/multicoreware/x265/downloads/x265_3.4.tar.gz
I got this errors:
Error: Failed to download resource "git--html"
Download failed: https://mirrors.edge.kernel.org/pub/software/scm/git/git-htmldocs-2.28.0.tar.xz
Error: Failed to download resource "x265"
Download failed: https://bitbucket.org/multicoreware/x265/downloads/x265_3.4.tar.gz

Error building tensorflow using bazel in a docker container

I installed docker toolbox in windows, and I also pulled images for tensorflow and bazel.
When i run bazel in docker as follows:
docker run -it insready/bazel:latest bash
the bazel runs, but no tensorflow in workplace, as I "git clone tensorflow", i can run as:
bazel build tensorflow/python/tools:optimize_for_inference
erros occured that the protobuf file not download!
How can i optimize the tensorflow model (.pb file) with bazel tools in order to build the app in a android envionment?
root#8f43a8b6c598:/usr/src/app/tensorflow# bazel build tensorflow/python/tools:o
ptimize_for_inference
Extracting Bazel installation...
..............................
ERROR: /usr/src/app/tensorflow/tensorflow/python/tools/BUILD:147:1: error loadin
g package 'tensorflow/core': Encountered error while reading extension file 'pro
tobuf.bzl': no such package '#protobuf//': Traceback (most recent call last):
File "/u_apply_patch(repo_ctx, repo_ctx.attr.patch_file) line 119
File "/u_execute_and_check_ret_code(repo_ctx, cmd).bzl", line 110, in _a
pply_patFile "/usr/src/app/tensorflow/tensorflow/workspace.bzl", line 94, in _ex
ecute_and_check_fail("Non-zero return code({1}) when ..., <2 more arguments>))
Non-zero return code(256) when executing 'patch -p1 -d /root/.cache/bazel/_bazel
_root/fcc55b35a14d93d1b456fb4b036f6add/external/protobuf -i /usr/src/app/tensorf
low/third_party/protobuf/add_noinlines.patch':
Stdout:
Stderr: java.io.IOException: Cannot run program "patch" (in directory "/root/.ca
che/bazel/_bazel_root/fcc55b35a14d93d1b456fb4b036f6add/external/protobuf"): erro
r=2, No such file or directory and referenced by '//tensorflow/python/tools:opti
mize_for_inference'.
ERROR: Analysis of target '//tensorflow/python/tools:optimize_for_inference' fai
led; build aborted.
Based on your error message:
Cannot run program "patch"
Maybe patch is not installed, try apt-get install patch ?

Error downloading shinyapps from github

I'm trying to download the package shinyapps following the instructions given in:
http://shiny.rstudio.com/articles/shinyapps.html
but I am having some errors.
I am on Windows 64 bit; my R version is R x64 3.2.1; my RStudio version is 0.99.447.
Here you can find the command I used:
if (!require("devtools"))
install.packages("devtools")
devtools::install_github("rstudio/shinyapps")
The devtools package seems correctly installed but I get the following error:
Downloading github repo rstudio/shinyapps#master
Installing shinyapps
"C:/PROGRA~1/R/R-32~1.1/bin/x64/R" --no-site-file --no-environ --no-save --no-restore CMD INSTALL \
"C:/Users/myname/AppData/Local/Temp/RtmpsbU7D7/devtools112063ad32a2/rstudio-shinyapps-688a4ac" \
--library="\\someadress/R/win-library/3.2" --install-tests
* installing *source* package 'shinyapps' ...
** R
** inst
** tests
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded
*** arch - i386
Warning in library(pkg_name, lib.loc = lib, character.only = TRUE, logical.return = TRUE) :
there is no package called 'shinyapps'
Error: loading failed
Execution halted
*** arch - x64
Warning in library(pkg_name, lib.loc = lib, character.only = TRUE, logical.return = TRUE) :
there is no package called 'shinyapps'
Error: loading failed
Execution halted
ERROR: loading failed for 'i386', 'x64'
* removing '\\someadress/Users/myname/Documents/R/win-library/3.2/shinyapps'
Error: Command failed (1)
I also tried to manually download the package from github (shinyapps-master.zip), unzip the folder and copy the folder into the R library folder. First of all the folder is not called shinyapps but shinyapps-master; I tried to call the library both as shinyapps and shinyapps-master but without success. Do you have any suggestions?

Cannot install package "predictionet" on Windows

I am trying to install predictionet but having troubles. Clearly there are no windows binaries available so I have been trying to install by building from source.
I have Rtools installed from here.
So far I have tried to use this command:
> install.packages("C:/Users/Blah/predictionet_1.10.0.tar.gz", repos = NULL, type="source")
But I am receiving this error message:
Installing package into ‘C:/Users/Blah/Documents/R/win-library/3.1’
(as ‘lib’ is unspecified)
* installing *source* package 'predictionet' ...
** libs
*** arch - i386
Warning: running command 'make -f "C:/PROGRA~1/R/R-31~1.0/etc/i386/Makeconf" -f "C:/PROGRA~1/R/R-31~1.0/share/make/winshlib.mk" SHLIB_LDFLAGS='$(SHLIB_CXXLDFLAGS)' SHLIB_LD='$(SHLIB_CXXLD)' SHLIB="predictionet.dll" OBJECTS="foo_mrmr.o mrnet_adapted.o mrnet_adapted2.o mrnet_ensemble_standalone.o"' had status 309
ERROR: compilation failed for package 'predictionet'
* removing 'C:/Users/Blah/Documents/R/win-library/3.1/predictionet'
Warning in install.packages :
running command '"C:/PROGRA~1/R/R-31~1.0/bin/x64/R" CMD INSTALL -l "C:\Users\Blah\Documents\R\win-library\3.1" "C:/Users/Blah/Desktop/predictionet_1.10.0.tar.gz"' had status 1
Warning in install.packages :
installation of package ‘C:/Users/Blah/Desktop/predictionet_1.10.0.tar.gz’ had non-zero exit status
I am new to R so have no idea how to go about troubleshooting this, any help would be much obliged!
Note: I am using Rstudio
You may try :
source("http://bioconductor.org/biocLite.R")
biocLite("predictionet")

Install R package from source, without changing PATH (Windows)

I'm trying to install package rpart for R-2.14.0 on Windows 7, but I get the warning:
package ‘rpart’ is not available (for R version 2.14.0)
So I download the tar.gz file from the package page. I have installed Rtools but I disabled all the options, including the one that changes the PATH. Then I do the following:
> install.packages("C:/rpart_3.1-50.tar.gz", type="source")
Installing package(s) into ‘C:/Users/backupSam/Documents/R/win-library/2.14’
(as ‘lib’ is unspecified)
inferring 'repos = NULL' from the file name
* installing *source* package 'rpart' ...
** libs
*** arch - i386
ERROR: compilation failed for package 'rpart'
* removing 'C:/Users/backupSam/Documents/R/win-library/2.14/rpart'
* restoring previous 'C:/Users/backupSam/Documents/R/win-library/2.14/rpart'
Warning messages:
1: running command 'C:/PROGRA~1/R/R-214~1.0/bin/i386/R CMD INSTALL -l "C:/Users/backupSam/Documents/R/win-library/2.14" "C:/rpart_3.1-50.tar.gz"' had status 1
2: In install.packages("C:/rpart_3.1-50.tar.gz", type = "source") :
installation of package ‘C:/rpart_3.1-50.tar.gz’ had non-zero exit status
Any suggestions?
Since you have to set the PATH, but you're hesitant to do so because you're afraid you may hose something up, you can do it temporarily in your R session via:
pathRtools <- paste(c("c:\\Rtools\\bin",
"c:\\Rtools\\MinGW\\bin",
"c:\\MiKTeX\\miktex\\bin",
"c:\\R\\bin\\i386",
"c:\\windows",
"c:\\windows\\system32"), collapse=";")
Sys.setenv(PATH=paste(pathRtools,Sys.getenv("PATH"),sep=";"))

Resources