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

installing external R packages requiring compilation fails [windows] #9184

Closed
zaphot opened this issue Apr 16, 2018 · 10 comments
Closed

installing external R packages requiring compilation fails [windows] #9184

zaphot opened this issue Apr 16, 2018 · 10 comments

Comments

@zaphot
Copy link

zaphot commented Apr 16, 2018

I cannot build/install R packages which require compilation.

i followed the steps provided here #729 and https://github.com/ContinuumIO/anaconda-issues/wiki/Install-R-Packages and installed the following packages:
conda install m2w64-toolchain m2-make m2-sed m2-zip m2-gzip m2-tar m2-texinfo m2-coreutils m2-diffutils r-devtools. Moreover i created a tmp folder in my anaconda installation mkdir %HOMEPATH%\Anaconda3\Library\tmp

But what is the cran Rtools equivalent in conda or should one install Rtools from cran? Moreover, can one integrate the build tools in Rstudio?

As an example the readxl package from https://cran.r-project.org/src/contrib/readxl_1.0.0.tar.gz is downloaded.

Using the command line:

>R CMD build readxl
* checking for file 'readxl/DESCRIPTION' ... OK
* preparing 'readxl':
* checking DESCRIPTION meta-information ... OK
* cleaning src
* installing the package to build vignettes
Warnung: Ausführung von Kommando '"C:/Users/thorsten/Anaconda3/lib/R/bin/x64/Rcmd.exe" INSTALL -l "C:\Users\thorsten\AppData\Local\Temp\Rtmpw1wxUa\Rinst14ac191f6872" --no-multiarch "C:/Users/thorsten/AppData/Local/Temp/Rtmpw1wxUa/Rbuild14ac3ede5ece/readxl"' ergab Status 1
      -----------------------------------
* installing *source* package 'readxl' ...
** libs
rm -Rf readxl.dll RcppExports.o XlsWorkBook.o XlsWorkSheet.o XlsxWorkBook.o XlsxWorkSheet.o endian.o ole.o xls.o xlstool.o zip.o
c:/Rtools/mingw_64/bin/g++ -m64 -I"C:/Users/thorsten/ANACON~1/lib/R/include" -DNDEBUG -Iwindows -I. -D__USE_MINGW_ANSI_STDIO -I"C:/Users/thorsten/Anaconda3/Lib/R/library/Rcpp/include"   -I"C:/swarm/workspace/External-R-3.4.3/vendor/extsoft/include"     -O2 -Wall  -mtune=core2 -c RcppExports.cpp -o RcppExports.o
/bin/sh: c:/Rtools/mingw_64/bin/g++: No such file or directory
C:/Users/thorsten/ANACON~1/lib/R/etc/x64/Makeconf:215: recipe for target 'RcppExports.o' failed
make: *** [RcppExports.o] Error 127
Warnung: Ausführung von Kommando 'make -f "Makevars.win" -f "C:/Users/thorsten/ANACON~1/lib/R/etc/x64/Makeconf" -f "C:/Users/thorsten/ANACON~1/lib/R/share/make/winshlib.mk" SHLIB_LDFLAGS='$(SHLIB_CXXLDFLAGS)' SHLIB_LD='$(SHLIB_CXXLD)' SHLIB="readxl.dll" WIN=64 TCLBIN=64 OBJECTS="RcppExports.o XlsWorkBook.o XlsWorkSheet.o XlsxWorkBook.o XlsxWorkSheet.o endian.o ole.o xls.o xlstool.o zip.o"' ergab Status 2
ERROR: compilation failed for package 'readxl'
* removing 'C:/Users/thorsten/AppData/Local/Temp/Rtmpw1wxUa/Rinst14ac191f6872/readxl'
In R CMD INSTALL
      -----------------------------------
ERROR: package installation failed

From within R:

R

R version 3.4.3 (2017-11-30) -- "Kite-Eating Tree"
Copyright (C) 2017 The R Foundation for Statistical Computing
Platform: x86_64-w64-mingw32/x64 (64-bit)

R ist freie Software und kommt OHNE JEGLICHE GARANTIE.
Sie sind eingeladen, es unter bestimmten Bedingungen weiter zu verbreiten.
Tippen Sie 'license()' or 'licence()' für Details dazu.

R ist ein Gemeinschaftsprojekt mit vielen Beitragenden.
Tippen Sie 'contributors()' für mehr Information und 'citation()',
um zu erfahren, wie R oder R packages in Publikationen zitiert werden können.

Tippen Sie 'demo()' für einige Demos, 'help()' für on-line Hilfe, oder
'help.start()' für eine HTML Browserschnittstelle zur Hilfe.
Tippen Sie 'q()', um R zu verlassen.

Microsoft R Open 3.4.3
The enhanced R distribution from Microsoft
Microsoft packages Copyright (C) 2017 Microsoft Corporation

Using the Intel MKL for parallel mathematical computing (using 4 cores).

Default CRAN mirror snapshot taken on 2017-09-01.
See: https://mran.microsoft.com/.

> install.packages("readxl_1.0.0.tar.gz", repos=NULL, type="source")
In R CMD INSTALL
* installing *source* package 'readxl' ...
** Paket 'readxl' erfolgreich entpackt und MD5 Summen überprüft
** libs
rm -Rf readxl.dll RcppExports.o XlsWorkBook.o XlsWorkSheet.o XlsxWorkBook.o XlsxWorkSheet.o endian.o init.o ole.o xls.o xlstool.o zip.o
c:/Rtools/mingw_64/bin/g++ -m64 -I"C:/Users/thorsten/ANACON~1/lib/R/include" -DNDEBUG -Iwindows -I. -D__USE_MINGW_ANSI_STDIO -I"C:/Users/thorsten/Anaconda3/Lib/R/library/Rcpp/include"   -I"C:/swarm/workspace/External-R-3.4.3/vendor/extsoft/include"     -O2 -Wall  -mtune=core2 -c RcppExports.cpp -o RcppExports.o
/bin/sh: c:/Rtools/mingw_64/bin/g++: No such file or directory
C:/Users/thorsten/ANACON~1/lib/R/etc/x64/Makeconf:215: recipe for target 'RcppExports.o' failed
make: *** [RcppExports.o] Error 127
Warnung: Ausführung von Kommando 'make -f "Makevars.win" -f "C:/Users/thorsten/ANACON~1/lib/R/etc/x64/Makeconf" -f "C:/Users/thorsten/ANACON~1/lib/R/share/make/winshlib.mk" SHLIB_LDFLAGS='$(SHLIB_CXXLDFLAGS)' SHLIB_LD='$(SHLIB_CXXLD)' SHLIB="readxl.dll" WIN=64 TCLBIN=64 OBJECTS="RcppExports.o XlsWorkBook.o XlsWorkSheet.o XlsxWorkBook.o XlsxWorkSheet.o endian.o init.o ole.o xls.o xlstool.o zip.o"' ergab Status 2
ERROR: compilation failed for package 'readxl'
* removing 'C:/Users/thorsten/Anaconda3/Lib/R/library/readxl'
* restoring previous 'C:/Users/thorsten/Anaconda3/Lib/R/library/readxl'
Warnmeldungen:
1: Ausführung von Kommando '"C:/Users/thorsten/Anaconda3/lib/R/bin/x64/R" CMD INSTALL -l "C:\Users\thorsten\Anaconda3\Lib\R\library" "readxl_1.0.0.tar.gz"' ergab Status 1
2: In install.packages("readxl_1.0.0.tar.gz", repos = NULL, type = "source") :
  Installation des Pakets 'readxl_1.0.0.tar.gz' hatte Exit-Status ungleich 0
conda info:
     active environment : base
    active env location : C:\Users\thorsten\Anaconda3
            shell level : 1
       user config file : C:\Users\thorsten\.condarc
 populated config files :
          conda version : 4.5.1
    conda-build version : 3.8.1
         python version : 3.6.5.final.0
       base environment : C:\Users\thorsten\Anaconda3  (writable)
           channel URLs : https://repo.anaconda.com/pkgs/main/win-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/free/win-64
                          https://repo.anaconda.com/pkgs/free/noarch
                          https://repo.anaconda.com/pkgs/r/win-64
                          https://repo.anaconda.com/pkgs/r/noarch
                          https://repo.anaconda.com/pkgs/pro/win-64
                          https://repo.anaconda.com/pkgs/pro/noarch
                          https://repo.anaconda.com/pkgs/msys2/win-64
                          https://repo.anaconda.com/pkgs/msys2/noarch
          package cache : C:\Users\thorsten\Anaconda3\pkgs
                          C:\Users\thorsten\AppData\Local\conda\conda\pkgs
       envs directories : C:\Users\thorsten\Anaconda3\envs
                          C:\Users\thorsten\AppData\Local\conda\conda\envs
                          C:\Users\thorsten\.conda\envs
               platform : win-64
             user-agent : conda/4.5.1 requests/2.18.4 CPython/3.6.5 Windows/10 Windows/10.0.16299
          administrator : False
             netrc file : None
           offline mode : False

conda list --show-channel-urls
# packages in environment at C:\Users\thorsten\Anaconda3:
#
# Name                    Version                   Build  Channel
_ipyw_jlab_nb_ext_conf    0.1.0            py36he6757f0_0    defaults
_r-mutex                  1.0.0                     mro_2    r
alabaster                 0.7.10           py36hcd07829_0    defaults
anaconda                  custom           py36h363777c_0    defaults
anaconda-client           1.6.14                   py36_0    defaults
anaconda-navigator        1.8.3                    py36_0    defaults
anaconda-project          0.8.2            py36hfad2e28_0    defaults
asn1crypto                0.24.0                   py36_0    defaults
astroid                   1.6.3                    py36_0    defaults
astropy                   3.0.1            py36h452e1ab_1    defaults
attrs                     17.4.0                   py36_0    defaults
babel                     2.5.3                    py36_0    defaults
backcall                  0.1.0                    py36_0    defaults
backports                 1.0              py36h81696a8_1    defaults
backports.shutil_get_terminal_size 1.0.0            py36h79ab834_2    defaults
beautifulsoup4            4.6.0            py36hd4cc5e8_1    defaults
bitarray                  0.8.1            py36hfa6e2cd_1    defaults
bkcharts                  0.2              py36h7e685f7_0    defaults
blaze                     0.11.3           py36h8a29ca5_0    defaults
bleach                    2.1.3                    py36_0    defaults
bokeh                     0.12.15                  py36_0    defaults
boto                      2.48.0           py36h1a776d2_1    defaults
bottleneck                1.2.1            py36hd119dfa_0    defaults
bzip2                     1.0.6                hbe05fcf_4    defaults
ca-certificates           2018.03.07                    0    defaults
certifi                   2018.1.18                py36_0    defaults
cffi                      1.11.5           py36h945400d_0    defaults
chardet                   3.0.4            py36h420ce6e_1    defaults
click                     6.7              py36hec8c647_0    defaults
cloudpickle               0.5.2                    py36_1    defaults
clyent                    1.2.2            py36hb10d595_1    defaults
colorama                  0.3.9            py36h029ae33_0    defaults
comtypes                  1.1.4                    py36_0    defaults
conda                     4.5.1                    py36_0    defaults
conda-build               3.8.1                    py36_0    defaults
conda-env                 2.6.0                h36134e3_1    defaults
conda-verify              2.0.0            py36h065de53_0    defaults
console_shortcut          0.1.1                h6bb2dd7_3    defaults
contextlib2               0.5.5            py36he5d52c0_0    defaults
cryptography              2.2.2            py36hfa6e2cd_0    defaults
curl                      7.59.0               h7602738_0    defaults
cycler                    0.10.0           py36h009560c_0    defaults
cython                    0.28.2           py36hfa6e2cd_0    defaults
cytoolz                   0.9.0.1          py36hfa6e2cd_0    defaults
dask                      0.17.2                   py36_0    defaults
dask-core                 0.17.2                   py36_0    defaults
datashape                 0.5.4            py36h5770b85_0    defaults
decorator                 4.3.0                    py36_0    defaults
distributed               1.21.6                   py36_0    defaults
docutils                  0.14             py36h6012d8f_0    defaults
entrypoints               0.2.3            py36hfd66bb0_2    defaults
et_xmlfile                1.0.1            py36h3d2d736_0    defaults
fastcache                 1.0.2            py36hfa6e2cd_2    defaults
filelock                  3.0.4                    py36_0    defaults
flake8                    3.5.0                    py36_1    defaults
flask                     0.12.2           py36h98b5e8f_0    defaults
flask-cors                3.0.3            py36h8a3855d_0    defaults
font-ttf-dejavu-sans-mono 2.37                 h6964260_0    defaults
font-ttf-inconsolata      2.001                hcb22688_0    defaults
font-ttf-source-code-pro  2.030                h7457263_0    defaults
font-ttf-ubuntu           0.83                 h8b1ccd4_0    defaults
fonts-anaconda            1                    h8fa9717_0    defaults
freetype                  2.8                  h51f8f2c_1    defaults
get_terminal_size         1.0.0                h38e98db_0    defaults
gevent                    1.2.2            py36h342a76c_0    defaults
glob2                     0.6              py36hdf76b57_0    defaults
greenlet                  0.4.13           py36hfa6e2cd_0    defaults
h5py                      2.7.1            py36he54a1c3_0    defaults
hdf5                      1.10.1               h98b8871_1    defaults
heapdict                  1.0.0                    py36_2    defaults
html5lib                  1.0.1            py36h047fa9f_0    defaults
icc_rt                    2017.0.4             h97af966_0    defaults
icu                       58.2                 ha66f8fd_1    defaults
idna                      2.6              py36h148d497_1    defaults
imageio                   2.3.0                    py36_0    defaults
imagesize                 1.0.0                    py36_0    defaults
intel-openmp              2018.0.0                      8    defaults
ipykernel                 4.8.2                    py36_0    defaults
ipython                   6.3.1                    py36_0    defaults
ipython_genutils          0.2.0            py36h3c5d0ee_0    defaults
ipywidgets                7.2.0                    py36_0    defaults
isort                     4.3.4                    py36_0    defaults
itsdangerous              0.24             py36hb6c5a24_1    defaults
jdcal                     1.3              py36h64a5255_0    defaults
jedi                      0.11.1                   py36_1    defaults
jinja2                    2.10             py36h292fed1_0    defaults
jpeg                      9b                   hb83a4c4_2    defaults
jsonschema                2.6.0            py36h7636477_0    defaults
jupyter                   1.0.0                    py36_4    defaults
jupyter_client            5.2.3                    py36_0    defaults
jupyter_console           5.2.0            py36h6d89b47_1    defaults
jupyter_core              4.4.0            py36h56e9d50_0    defaults
jupyterlab                0.31.12                  py36_0    defaults
jupyterlab_launcher       0.10.5                   py36_0    defaults
kiwisolver                1.0.1            py36h12c3424_0    defaults
lazy-object-proxy         1.3.1            py36hd1c21d2_0    defaults
libcurl                   7.59.0               hc4dcbb0_0    defaults
libiconv                  1.15                 h1df5818_7    defaults
libpng                    1.6.34               h79bbb47_0    defaults
libssh2                   1.8.0                hd619d38_4    defaults
libtiff                   4.0.9                h0f13578_0    defaults
libxml2                   2.9.8                hc33b523_0    defaults
libxslt                   1.1.32               hf6f1972_0    defaults
llvmlite                  0.22.0           py36ha794a7c_0    defaults
locket                    0.2.0            py36hfed976d_1    defaults
lxml                      4.2.1            py36heafd4d3_0    defaults
lzo                       2.10                 h6df0209_2    defaults
m2-bash                   4.3.042                       5    defaults
m2-coreutils              8.25                        102    defaults
m2-db                     5.3.28                        3    defaults
m2-diffutils              3.3                           4    defaults
m2-gcc-libs               5.3.0                         4    defaults
m2-gdbm                   1.11                          4    defaults
m2-gmp                    6.1.0                         3    defaults
m2-gzip                   1.7                           2    defaults
m2-heimdal                1.5.3                        10    defaults
m2-heimdal-libs           1.5.3                        10    defaults
m2-icu                    56.1                          2    defaults
m2-info                   6.0                           2    defaults
m2-less                   481                           2    defaults
m2-libbz2                 1.0.6                         3    defaults
m2-libcrypt               1.3                           2    defaults
m2-libdb                  5.3.28                        3    defaults
m2-libedit                3.1                    20150326    defaults
m2-libgdbm                1.11                          4    defaults
m2-libiconv               1.14                          3    defaults
m2-libintl                0.19.7                        4    defaults
m2-libopenssl             1.0.2.g                       2    defaults
m2-libpcre                8.38                          2    defaults
m2-libreadline            6.3.008                       8    defaults
m2-libsqlite              3.10.0.0                      2    defaults
m2-make                   4.1                           5    defaults
m2-msys2-runtime          2.5.0.17080.65c939c               3    defaults
m2-ncurses                6.0.20160220                  2    defaults
m2-openssh                7.1p2                         2    defaults
m2-openssl                1.0.2.g                       2    defaults
m2-perl                   5.22.1                        2    defaults
m2-sed                    4.2.2                         3    defaults
m2-tar                    1.28                          4    defaults
m2-texinfo                6.0                           2    defaults
m2-zip                    3.0                           2    defaults
m2-zlib                   1.2.8                         4    defaults
m2w64-binutils            2.25.1                        5    defaults
m2w64-bzip2               1.0.6                         6    defaults
m2w64-ca-certificates     20150426                    103    defaults
m2w64-crt-git             5.0.0.4636.2595836               2    defaults
m2w64-diffutils           3.3.2                         2    defaults
m2w64-expat               2.1.1                         2    defaults
m2w64-gcc                 5.3.0                         6    defaults
m2w64-gcc-ada             5.3.0                         6    defaults
m2w64-gcc-fortran         5.3.0                         6    defaults
m2w64-gcc-libgfortran     5.3.0                         6    defaults
m2w64-gcc-libs            5.3.0                         7    defaults
m2w64-gcc-libs-core       5.3.0                         7    defaults
m2w64-gcc-objc            5.3.0                         6    defaults
m2w64-gettext             0.19.7                        2    defaults
m2w64-gmp                 6.1.0                         2    defaults
m2w64-grep                2.24                          2    defaults
m2w64-headers-git         5.0.0.4636.c0ad18a               2    defaults
m2w64-isl                 0.16.1                        2    defaults
m2w64-libffi              3.2.1                         4    defaults
m2w64-libiconv            1.14                          6    defaults
m2w64-libmangle-git       5.0.0.4509.2e5a9a2               2    defaults
m2w64-libtasn1            4.7                           2    defaults
m2w64-libwinpthread-git   5.0.0.4634.697f757               2    defaults
m2w64-make                4.1.2351.a80a8b8               2    defaults
m2w64-mpc                 1.0.3                         3    defaults
m2w64-mpfr                3.1.4                         4    defaults
m2w64-openssl             1.0.2.g                       2    defaults
m2w64-p11-kit             0.23.2                        2    defaults
m2w64-pcre                8.38                          2    defaults
m2w64-pkg-config          0.29.1                        2    defaults
m2w64-toolchain           5.3.0                         7    defaults
m2w64-tools-git           5.0.0.4592.90b8472               2    defaults
m2w64-windows-default-manifest 6.4                           3    defaults
m2w64-wineditline         2.101                         5    defaults
m2w64-winpthreads-git     5.0.0.4634.697f757               2    defaults
m2w64-zlib                1.2.8                        10    defaults
markupsafe                1.0              py36h0e26971_1    defaults
matplotlib                2.2.2            py36h153e9ff_0    defaults
mccabe                    0.6.1            py36hb41005a_1    defaults
menuinst                  1.4.11           py36hfa6e2cd_0    defaults
mistune                   0.8.3                    py36_0    defaults
mkl                       2018.0.2                      1    defaults
mkl-service               1.1.2            py36h57e144c_4    defaults
mkl_fft                   1.0.1            py36h452e1ab_0    defaults
mkl_random                1.0.1            py36h9258bd6_0    defaults
more-itertools            4.1.0                    py36_0    defaults
mpmath                    1.0.0            py36hacc8adf_2    defaults
mro-base                  3.4.3                         0    r
mro-basics                3.4.3                         0    r
msgpack-python            0.5.6            py36he980bc4_0    defaults
msys2-conda-epoch         20160418                      1    defaults
multipledispatch          0.5.0                    py36_0    defaults
navigator-updater         0.1.0            py36h8a7b86b_0    defaults
nbconvert                 5.3.1            py36h8dc0fde_0    defaults
nbformat                  4.4.0            py36h3a5bc1b_0    defaults
networkx                  2.1                      py36_0    defaults
nltk                      3.2.5            py36h76d52bb_0    defaults
nose                      1.3.7            py36h1c3779e_2    defaults
notebook                  5.4.1                    py36_0    defaults
numba                     0.37.0          np114py36hea3a760_0    defaults
numexpr                   2.6.4            py36h30784b8_0    defaults
numpy                     1.14.2           py36h5c71026_1    defaults
numpydoc                  0.8.0                    py36_0    defaults
odo                       0.5.1            py36h7560279_0    defaults
olefile                   0.45.1                   py36_0    defaults
openpyxl                  2.5.2                    py36_0    defaults
openssl                   1.0.2o               h8ea7d77_0    defaults
packaging                 17.1                     py36_0    defaults
pandas                    0.22.0           py36h6538335_0    defaults
pandoc                    1.19.2.1             hb2460c7_1    defaults
pandocfilters             1.4.2            py36h3ef6317_1    defaults
parso                     0.1.1            py36hae3edee_0    defaults
partd                     0.3.8            py36hc8e763b_0    defaults
path.py                   11.0.1                   py36_0    defaults
pathlib2                  2.3.0            py36h7bfb78b_0    defaults
patsy                     0.5.0                    py36_0    defaults
pep8                      1.7.1                    py36_0    defaults
pickleshare               0.7.4            py36h9de030f_0    defaults
pillow                    5.1.0            py36h0738816_0    defaults
pip                       9.0.3                    py36_0    defaults
pkginfo                   1.4.2                    py36_1    defaults
pluggy                    0.6.0            py36hc7daf1e_0    defaults
ply                       3.11                     py36_0    defaults
prompt_toolkit            1.0.15           py36h60b8f86_0    defaults
psutil                    5.4.5            py36hfa6e2cd_0    defaults
py                        1.5.3                    py36_0    defaults
pycodestyle               2.3.1            py36h7cc55cd_0    defaults
pycosat                   0.6.3            py36h413d8a4_0    defaults
pycparser                 2.18             py36hd053e01_1    defaults
pycrypto                  2.6.1            py36hfa6e2cd_7    defaults
pyflakes                  1.6.0            py36h0b975d6_0    defaults
pygments                  2.2.0            py36hb010967_0    defaults
pylint                    1.8.4                    py36_0    defaults
pyodbc                    4.0.23           py36h6538335_0    defaults
pyopenssl                 17.5.0           py36h5b7d817_0    defaults
pyparsing                 2.2.0            py36h785a196_1    defaults
pyqt                      5.6.0            py36hb5ed885_5    defaults
pysocks                   1.6.8                    py36_0    defaults
pytables                  3.4.2            py36h71138e3_2    defaults
pytest                    3.5.0                    py36_0    defaults
pytest-arraydiff          0.2                      py36_0    defaults
pytest-astropy            0.2.1                    py36_0    defaults
pytest-doctestplus        0.1.2                    py36_0    defaults
pytest-openfiles          0.2.0                    py36_0    defaults
pytest-remotedata         0.2.0                    py36_0    defaults
python                    3.6.5                h0c2934d_0    defaults
python-dateutil           2.7.2                    py36_0    defaults
pytz                      2018.4                   py36_0    defaults
pywavelets                0.5.2            py36hc649158_0    defaults
pywin32                   223              py36hfa6e2cd_0    defaults
pywinpty                  0.5.1                    py36_0    defaults
pyyaml                    3.12             py36h1d1928f_1    defaults
pyzmq                     17.0.0           py36hfa6e2cd_0    defaults
qt                        5.6.2           vc14h6f8c307_12    defaults
qtawesome                 0.4.4            py36h5aa48f6_0    defaults
qtconsole                 4.3.1            py36h99a29a9_0    defaults
qtpy                      1.4.0                    py36_0    defaults
r-assertthat              0.2.0           mro343h889e2dd_0    r
r-backports               1.1.2           mro343h889e2dd_0    r
r-base64enc               0.1_3           mro343h889e2dd_0    r
r-bh                      1.65.0_1        mro343h889e2dd_0    r
r-bindr                   0.1             mro343h889e2dd_0    r
r-bindrcpp                0.2             mro343h889e2dd_0    r
r-bit                     1.1_12          mro343h889e2dd_0    r
r-bit64                   0.9_7           mro343h889e2dd_0    r
r-bitops                  1.0_6           mro343h889e2dd_0    r
r-blob                    1.1.0           mro343h889e2dd_0    r
r-boot                    1.3_20                 mro343_0    r
r-broom                   0.4.3           mro343h889e2dd_0    r
r-callr                   1.0.0           mro343h889e2dd_0    r
r-caret                   6.0_78          mro343h889e2dd_0    r
r-catools                 1.17.1          mro343h889e2dd_0    r
r-cellranger              1.1.0           mro343h889e2dd_0    r
r-checkpoint              0.4.3                  mro343_0    r
r-class                   7.3_14                 mro343_0    r
r-cli                     1.0.0           mro343h889e2dd_0    r
r-clipr                   0.4.0           mro343h889e2dd_0    r
r-cluster                 2.0.6                  mro343_0    r
r-codetools               0.2_15                 mro343_0    r
r-colorspace              1.3_2           mro343h889e2dd_0    r
r-config                  0.2             mro343h889e2dd_0    r
r-crayon                  1.3.4           mro343h889e2dd_0    r
r-curl                    3.1                    mro343_0    r
r-cvst                    0.2_1           mro343h889e2dd_0    r
r-data.table              1.10.4_3        mro343h889e2dd_0    r
r-dbi                     0.7             mro343h889e2dd_0    r
r-dbplyr                  1.1.0           mro343h889e2dd_0    r
r-ddalpha                 1.3.1           mro343h889e2dd_0    r
r-deoptimr                1.0_8           mro343h889e2dd_0    r
r-deployrrserve           9.0.0                  mro343_0    r
r-devtools                1.13.4          mro343h889e2dd_0    r
r-dichromat               2.0_0           mro343h889e2dd_0    r
r-digest                  0.6.13          mro343h889e2dd_0    r
r-dimred                  0.1.0           mro343h889e2dd_0    r
r-doparallel              1.0.12                 mro343_0    r
r-dplyr                   0.7.4           mro343h889e2dd_0    r
r-drr                     0.0.2           mro343h889e2dd_0    r
r-essentials              3.4.3                  mro343_0    r
r-evaluate                0.10.1          mro343h889e2dd_0    r
r-forcats                 0.2.0           mro343h889e2dd_0    r
r-foreach                 1.4.5                  mro343_0    r
r-foreign                 0.8_69                 mro343_0    r
r-formatr                 1.5             mro343h889e2dd_0    r
r-ggplot2                 2.2.1           mro343h889e2dd_0    r
r-git2r                   0.20.0          mro343h889e2dd_0    r
r-glmnet                  2.0_13          mro343h889e2dd_0    r
r-glue                    1.2.0           mro343h889e2dd_0    r
r-gower                   0.1.2           mro343h889e2dd_0    r
r-gtable                  0.2.0           mro343h889e2dd_0    r
r-haven                   1.1.0           mro343h889e2dd_0    r
r-hexbin                  1.27.1          mro343h889e2dd_0    r
r-highr                   0.6             mro343h889e2dd_0    r
r-hms                     0.4.0           mro343h889e2dd_0    r
r-htmltools               0.3.6           mro343h889e2dd_0    r
r-htmlwidgets             0.9             mro343h889e2dd_0    r
r-httpuv                  1.3.5           mro343h889e2dd_0    r
r-httr                    1.3.1           mro343h889e2dd_0    r
r-ipred                   0.9_6           mro343h889e2dd_0    r
r-irdisplay               0.4.4           mro343h889e2dd_0    r
r-irkernel                0.8.11                 mro343_0    r
r-iterators               1.0.9                  mro343_0    r
r-jsonlite                1.5                    mro343_0    r
r-kernlab                 0.9_25          mro343h889e2dd_0    r
r-kernsmooth              2.23_15                mro343_0    r
r-knitr                   1.18            mro343h889e2dd_0    r
r-labeling                0.3             mro343h889e2dd_0    r
r-lattice                 0.20_35                mro343_0    r
r-lava                    1.5.1           mro343h889e2dd_0    r
r-lazyeval                0.2.1           mro343h889e2dd_0    r
r-lubridate               1.7.1           mro343h889e2dd_0    r
r-magrittr                1.5             mro343h889e2dd_0    r
r-maps                    3.2.0           mro343h889e2dd_0    r
r-markdown                0.8             mro343h889e2dd_0    r
r-mass                    7.3_47                 mro343_0    r
r-matrix                  1.2_12                 mro343_0    r
r-memoise                 1.1.0           mro343h889e2dd_0    r
r-mgcv                    1.8_22                 mro343_0    r
r-microsoftr              3.4.3.0097             mro343_0    r
r-mime                    0.5             mro343h889e2dd_0    r
r-miniui                  0.1.1           mro343h889e2dd_0    r
r-mnormt                  1.5_5           mro343h889e2dd_0    r
r-modelmetrics            1.1.0           mro343h889e2dd_0    r
r-modelr                  0.1.1           mro343h889e2dd_0    r
r-mongolite               1.4             mro343h889e2dd_0    r
r-munsell                 0.4.3           mro343h889e2dd_0    r
r-nlme                    3.1_131                mro343_0    r
r-nnet                    7.3_12                 mro343_0    r
r-numderiv                2016.8_1        mro343h889e2dd_0    r
r-odbc                    1.1.3           mro343h889e2dd_0    r
r-openssl                 0.9.9           mro343h889e2dd_0    r
r-packrat                 0.4.8_1         mro343h889e2dd_0    r
r-pbdzmq                  0.2_6           mro343h889e2dd_0    r
r-pillar                  1.0.1           mro343h889e2dd_0    r
r-pkgconfig               2.0.1           mro343h889e2dd_0    r
r-pki                     0.1_5.1         mro343h889e2dd_0    r
r-plogr                   0.1_1           mro343h889e2dd_0    r
r-plyr                    1.8.4           mro343h889e2dd_0    r
r-png                     0.1_7                  mro343_0    r
r-prodlim                 1.6.1           mro343h889e2dd_0    r
r-profvis                 0.3.4           mro343h889e2dd_0    r
r-psych                   1.7.8           mro343h889e2dd_0    r
r-purrr                   0.2.4           mro343h889e2dd_0    r
r-quantmod                0.4_12          mro343h889e2dd_0    r
r-r6                      2.2.2                  mro343_0    r
r-randomforest            4.6_12          mro343h889e2dd_0    r
r-rappdirs                0.3.1           mro343h889e2dd_0    r
r-rbokeh                  0.6.3                  mro343_0    r
r-rcolorbrewer            1.1_2           mro343h889e2dd_0    r
r-rcpp                    0.12.14         mro343h889e2dd_0    r
r-rcpproll                0.2.2           mro343h889e2dd_0    r
r-rcurl                   1.95_4.9        mro343h889e2dd_0    r
r-readr                   1.1.1           mro343h889e2dd_0    r
r-readxl                  1.0.0           mro343h889e2dd_0    r
r-recipes                 0.1.1           mro343h889e2dd_0    r
r-recommended             3.4.3                  mro343_0    r
r-rematch                 1.0.1           mro343h889e2dd_0    r
r-repr                    0.12.0          mro343h889e2dd_0    r
r-reprex                  0.1.1           mro343h889e2dd_0    r
r-reshape2                1.4.3           mro343h889e2dd_0    r
r-revoioq                 8.0.9                  mro343_0    r
r-revomods                11.0.0                 mro343_0    r
r-revoutilsmath           10.0.1                 mro343_0    r
r-rjava                   0.9_9           mro343h889e2dd_0    r
r-rjdbc                   0.2_5           mro343h889e2dd_0    r
r-rjsonio                 1.3_0           mro343h889e2dd_0    r
r-rlang                   0.1.6           mro343h889e2dd_0    r
r-rmarkdown               1.8             mro343h889e2dd_0    r
r-robustbase              0.92_8          mro343h889e2dd_0    r
r-rpart                   4.1_11                 mro343_0    r
r-rprojroot               1.3_1           mro343h889e2dd_0    r
r-rsconnect               0.8.5           mro343h889e2dd_0    r
r-rstudioapi              0.7             mro343h889e2dd_0    r
r-runit                   0.4.26                 mro343_0    r
r-rvest                   0.3.2           mro343h889e2dd_0    r
r-scales                  0.5.0           mro343h889e2dd_0    r
r-selectr                 0.3_1           mro343h889e2dd_0    r
r-sfsmisc                 1.1_1           mro343h889e2dd_0    r
r-shiny                   1.0.5           mro343h889e2dd_0    r
r-sourcetools             0.1.6           mro343h889e2dd_0    r
r-sparklyr                0.6.4           mro343h889e2dd_0    r
r-spatial                 7.3_11                 mro343_0    r
r-stringi                 1.1.6           mro343h889e2dd_0    r
r-stringr                 1.2.0           mro343h889e2dd_0    r
r-survival                2.41_3                 mro343_0    r
r-tibble                  1.4.1           mro343h889e2dd_0    r
r-tidyr                   0.7.2           mro343h889e2dd_0    r
r-tidyselect              0.2.3           mro343h889e2dd_0    r
r-tidyverse               1.2.1           mro343h889e2dd_0    r
r-timedate                3042.101        mro343h889e2dd_0    r
r-ttr                     0.23_2          mro343h889e2dd_0    r
r-utf8                    1.1.2           mro343h889e2dd_0    r
r-uuid                    0.1_2           mro343h889e2dd_0    r
r-viridislite             0.2.0           mro343h889e2dd_0    r
r-whisker                 0.3_2           mro343h889e2dd_0    r
r-withr                   2.1.1           mro343h889e2dd_0    r
r-xml2                    1.1.1           mro343h889e2dd_0    r
r-xtable                  1.8_2           mro343h889e2dd_0    r
r-xts                     0.10_1          mro343h889e2dd_0    r
r-yaml                    2.1.16          mro343h889e2dd_0    r
r-zoo                     1.8_0           mro343h889e2dd_0    r
requests                  2.18.4           py36h4371aae_1    defaults
rope                      0.10.7           py36had63a69_0    defaults
rstudio                   1.1.423              h8c352d3_0    defaults
ruamel_yaml               0.15.35          py36hfa6e2cd_1    defaults
scikit-image              0.13.1           py36hfa6e2cd_1    defaults
scikit-learn              0.19.1           py36h53aea1b_0    defaults
scipy                     1.0.1            py36hce232c7_0    defaults
seaborn                   0.8.1            py36h9b69545_0    defaults
send2trash                1.5.0                    py36_0    defaults
setuptools                39.0.1                   py36_0    defaults
simplegeneric             0.8.1                    py36_2    defaults
singledispatch            3.4.0.3          py36h17d0c80_0    defaults
sip                       4.18.1           py36h9c25514_2    defaults
six                       1.11.0           py36h4db2310_1    defaults
snowballstemmer           1.2.1            py36h763602f_0    defaults
sortedcollections         0.6.1                    py36_0    defaults
sortedcontainers          1.5.9                    py36_0    defaults
sphinx                    1.7.2                    py36_0    defaults
sphinxcontrib             1.0              py36hbbac3d2_1    defaults
sphinxcontrib-websupport  1.0.1            py36hb5e5916_1    defaults
spyder                    3.2.8                    py36_0    defaults
sqlalchemy                1.2.6            py36hfa6e2cd_0    defaults
sqlite                    3.22.0               h9d3ae62_0    defaults
statsmodels               0.8.0            py36h6189b4c_0    defaults
sympy                     1.1.1            py36h96708e0_0    defaults
tblib                     1.3.2            py36h30f5020_0    defaults
terminado                 0.8.1                    py36_1    defaults
testpath                  0.3.1            py36h2698cfe_0    defaults
tk                        8.6.7                hcb92d03_3    defaults
toolz                     0.9.0                    py36_0    defaults
tornado                   5.0.1                    py36_1    defaults
traitlets                 4.3.2            py36h096827d_0    defaults
typing                    3.6.4                    py36_0    defaults
unicodecsv                0.14.1           py36h6450c06_0    defaults
urllib3                   1.22             py36h276f60a_0    defaults
vc                        14                   h0510ff6_3    defaults
vs2015_runtime            14.0.25123                    3    defaults
wcwidth                   0.1.7            py36h3d5aa90_0    defaults
webencodings              0.5.1            py36h67c50ae_1    defaults
werkzeug                  0.14.1                   py36_0    defaults
wheel                     0.31.0                   py36_0    defaults
widgetsnbextension        3.2.0                    py36_0    defaults
win_inet_pton             1.0.1            py36he67d7fd_1    defaults
win_unicode_console       0.5              py36hcdbd4b5_0    defaults
wincertstore              0.2              py36h7fe50ca_0    defaults
winpty                    0.4.3                         4    defaults
wrapt                     1.10.11          py36he5f5981_0    defaults
xlrd                      1.1.0            py36h1cb58dc_1    defaults
xlsxwriter                1.0.2            py36hf723b7d_0    defaults
xlwings                   0.11.7                   py36_0    defaults
xlwt                      1.3.0            py36h1a4751e_0    defaults
yaml                      0.1.7                hc54c509_2    defaults
zict                      0.1.3            py36h2d8e73e_0    defaults
zlib                      1.2.11               h8395fce_2    defaults
@mikofski
Copy link

Ah, I bet this has something to do with the switch to MRO earlier this year. Sorry for my earlier comments, I removed them because they were irrelevant. Please ignore them.

@mingwandroid
Copy link

mingwandroid commented Apr 16, 2018

There's no need to build binaries for yourself on R on Windows since binaries are provided, either by conda when using the older R infrastructure and/or MRO or from MRAN when using MRO.

install.packages("readxl_1.0.0.tar.gz", repos=NULL, type="source")

You should use: conda install r-readxl. That will work just fine on both MRO and the older R infrastructure, otherwise you should use just install.packages("readxl") if you want to use binaries from MRAN.

@zaphot
Copy link
Author

zaphot commented Apr 17, 2018

I am surprised by this harsh reaction. Of course there IS need to build binaries for yourself...
I am developing an R package with C++ code and so far I used cran R and Rtools to generate binaries to distribute them to my colleagues. Now I attempted to use anaconda MRO for this.

R-readxl should thus only be an example (as stated above), which seems to be quite tested and even was successfully compiled by other in the linked issue.

@mingwandroid
Copy link

I am surprised by this harsh reaction

I see no harsh reaction. You didn't explain that you were a software developer working on R packages. One of the key things AD does is to take away the pain of compiling software.

If you want to compile your own packages then just follow the 'normal' instructions for installing and using Rtools. Everything should work just the same.

@mingwandroid
Copy link

If you want a conda-package for Rtools then you can use conda-build to build https://github.com/AnacondaRecipes/aggregateMRO/tree/master/rtools-feedstock/recipe

If you do that then you can use conda skeleton cran --r-interp mro-base to make other conda-recipes that will use this Rtools conda-package.

@mikofski
Copy link

@zaphot I believe you can also change your r from mro to r-base as it says in the linked anaconda docs above. Then you can build & install cran r packages the way I did and in the previous issue.

@zaphot
Copy link
Author

zaphot commented Apr 20, 2018

thx a lot for the answers and links. However, i will just use cran R and Rtools, since I think it's probably better/safer to use both toolchain and R environment from the same provider.

Would be cool if anaconda could also integrate an easy toolchain package (like it's done on linux). Just something like "conda install r-rtools" and start building your code independent of the os would be awesome. Of course it's nice that one doesn't have to compile every package. But besides compiling own code, i think it is also getting more and more common that publications provide new code just as source on github.

@mingwandroid
Copy link

mingwandroid commented Apr 20, 2018

Thanks for the feedback.

However, i will just use cran R and Rtools, since I think it's probably better/safer to use both toolchain and R environment from the same provider

If you use MRO on Windows then you are using upstream packages (for nearly everything). All I do is repackage the binaries in the installer and those on MRAN (which are snapshotted mirrors from CRAN) .. apart from on Linux, in which case I repackage the binaries in the installer and build everything else from source using our compilers. I am not sure what I will need to do with macOS yet.

Providing an Rtools package is very easy since I've written the recipe already (and used it to build some of the AD MRO packages). I am hesitant to do it because R upstream is working on modernising Rtools and I might want to wait until that's done, but I'll ask my team what they'd prefer here.

Pinging @csoja.

@aeferreira
Copy link

aeferreira commented Sep 7, 2018

@zaphot This is a possible solution for the error reported during compilation of R packages from source, using the conda msys2 packages.

It seems that R expects to find the C++ compilers or headers at the dir defined in variable BINPREF inside the file Makeconf to be found at <R installation dir>/etc/x64. In my installations of R, both from CRAN or MRO, this setting defaults to c:/Rtools/mingw_64/bin/. A simple solution, that worked for me, was to

edit <R installation dir>/etc/x64/makeconf and

change line
BINPREF ?= c:/Rtools/mingw_64/bin/
to
BINPREF ?= <Anaconda or Anaconda environment root>/Library/mingw-w64/bin/
(the trailing slash is really important)

BTW, the problem also arises when people using Rtools do not installed it in the default dir c:/Rtools , see, for instance,

r.789695.n4.nabble.com/Setting-the-path-to-Rtools-for-package-compilation-on-Windows-td4748266.html

Hope it works for you.

@mingwandroid
Copy link

mingwandroid commented Sep 7, 2018

You should use the official Rtools when compiling packages to work with MRO on Windows. We don't want to handle that for you since it involves writing files outside of CONDA_PREFIX though we can maybe do something to make an Rtools package and then change Makeconf to be dynamic about this.

Conda R (non-MRO version) already uses a dynamic BINPREF of BINPREF ?= $(R_HOME)/../../Library/mingw-w64/bin/. CRAN/official R is out of scope for the Anaconda Distribution.

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

No branches or pull requests

4 participants