Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to install rPython with R 3.1.3 on Windows? #40

Closed
surmann opened this issue Apr 10, 2015 · 13 comments
Closed

How to install rPython with R 3.1.3 on Windows? #40

surmann opened this issue Apr 10, 2015 · 13 comments
Assignees

Comments

@surmann
Copy link
Contributor

surmann commented Apr 10, 2015

How do I install rPython with R 3.1.3 on Windows OS?
An install.packages("rPython") from the austrian repo throws me the warning: "package rPython not available". The installation guide from rForge gives the same one.

@jakobbossek jakobbossek self-assigned this Apr 10, 2015
@jakobbossek
Copy link
Owner

Oh damn! rPython does not work on windows systems at the moment.

@jakobbossek
Copy link
Owner

Hmm, at the moment it is not possible to call python via rPython on Windows OS. Sure, I could just check whether the used OS is windows and throw an error message in that case for the mpm2 generator. However, the problem is that I need to note rPyhon in the Imports section in the DESCRIPTION file. This way the installation of smoof breaks under windows, since rPython is not available. At the moment I have no clue how to solve this. In the worst-case I will outsource the mpm2 stuff to a single UNIX-only package.

This was referenced Apr 11, 2015
@surmann surmann changed the title How to install rPython with R 3.1.3? How to install rPython with R 3.1.3 on Windows? Apr 12, 2015
@surmann
Copy link
Contributor Author

surmann commented Apr 12, 2015

My problem with this issue: I cannot use the ecr package without smoof which is not installable without rPython.

@surmann
Copy link
Contributor Author

surmann commented Apr 12, 2015

I installed rPython-win. Unfortunately, the package contains version 0.0-4.

@jakobbossek
Copy link
Owner

I will tackle this problem on monday.

@jakobbossek
Copy link
Owner

I moved rPython to Suggests. By default it should not be installed now. The python-dependent function should throw an error now on windows systems. Dirk, could you please check the latest build on you windows system?

@surmann
Copy link
Contributor Author

surmann commented Apr 13, 2015

I'm able to check smoof by check(".", force_suggests = FALSE). When I try to install the package by dt or from the R console directly, I get the following result:

> install(".", dependencies=c("Depends", "Imports", "LinkingTo"))
Installing smoof
"C:/PROGRA~1/R/R-31~1.3/bin/x64/R" --vanilla CMD INSTALL  \
  "C:/Users/surmann/Documents/Repositories/smoof"  \
  --library="C:/Users/surmann/Documents/R/win-library/3.1" --install-tests 

* installing *source* package 'smoof' ...
** libs

*** arch - i386
make: Nothing to be done for `all'.
installing to C:/Users/surmann/Documents/R/win-library/3.1/smoof/libs/i386

*** arch - x64
make: Nothing to be done for `all'.
installing to C:/Users/surmann/Documents/R/win-library/3.1/smoof/libs/x64
** R
** inst
** tests
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded
*** arch - i386
*** arch - x64
Error in inDL(x, as.logical(local), as.logical(now), ...) : 
  kann shared object 'C:/Users/surmann/Documents/R/win-library/3.1/smoof/libs/x64/smoof.dll' nicht laden:
  LoadLibrary failure:  %1 ist keine zulässige Win32-Anwendung.

Fehler: Laden fehlgeschlagen
Ausführung angehalten
ERROR: loading failed for 'x64'
* removing 'C:/Users/surmann/Documents/R/win-library/3.1/smoof'
* restoring previous 'C:/Users/surmann/Documents/R/win-library/3.1/smoof'
Error: Command failed (1)

Do you have an idea? I tried R 32-bit and 64-bit.

@jakobbossek
Copy link
Owner

Oh man! Since this error is referred to the generated dynamic link library (dll) I suppose this is a problem with the c(++) stuff.

@jakobbossek
Copy link
Owner

Going to check this on a windows machine soon.

@jakobbossek
Copy link
Owner

Well, I just successfully installed the latest commit via devtools::install_github("jakobbossek/smoof") on a Windows 7 machine with R version 3.1.1. No problems occured. I will check this in the evening on my home pc with the newest R version.

@surmann
Copy link
Contributor Author

surmann commented Apr 13, 2015

Arg. I tried it this way and it works.
After I deleted the directories scr-* manually, a dt install works too. We should add this in dt clean.

@jakobbossek
Copy link
Owner

Ok, can I close this issue?
You should open a new issue in the dt issue tracker and describe the problem there.

@surmann
Copy link
Contributor Author

surmann commented Apr 13, 2015

solved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants