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

Installation fails locally with lastest frozen Rtools 3.4 #21

Open
mrustl opened this issue Jan 21, 2019 · 1 comment
Open

Installation fails locally with lastest frozen Rtools 3.4 #21

mrustl opened this issue Jan 21, 2019 · 1 comment
Milestone

Comments

@mrustl
Copy link
Member

mrustl commented Jan 21, 2019

After 6695513 installing the R package locally using the latest frozen Rtools 3.4 (version 3.4.0.1964) installation fails on my Windows computer.

** building package indices
** installing vignettes
** testing if installed package can be loaded
*** arch - i386

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
*** arch - x64
ERROR: loading failed for 'i386'
* removing 'C:/Users/mrustl.KWB/Documents/R/win-library/3.5/kwb.pkgbuild'
* restoring previous 'C:/Users/mrustl.KWB/Documents/R/win-library/3.5/kwb.pkgbuild'
In R CMD INSTALL
@mrustl
Copy link
Member Author

mrustl commented Jan 21, 2019

Digging into the problem shows that it is not due to the Rtools 3.4. Also with Rtools 3.5 it fails on R 3.5.1@32bit

> pkgbuild::has_rtools(TRUE)
Scanning R CMD config CC...
cc_path: c:/Rtools/mingw_32/bin/gcc 
install_path: c:/Rtools 
VERSION.txt
Rtools version 3.5.0.4 
Found compatible gcc from R CMD config CC
[1] TRUE

But it is working on R 3.5.1@64bit if the installation is run from R 3.5.1 with the following command:

remotes::install_github("kwb-r/kwb.pkgbuild", INSTALL_opts =  c('--no-multiarch'))

To install a source package with compiled code only for the sub-architecture used by R CMD INSTALL, use --no-multiarch. To install just the compiled code for another sub-architecture, use --libs-only.
(Source: https://stat.ethz.ch/R-manual/R-devel/library/utils/html/INSTALL.html)

It seems that my implementation of the deploy_site_github_xxx function() only works on 64bit R.

@mrustl mrustl added this to the v0.1.0 milestone Feb 5, 2019
@mrustl mrustl modified the milestones: v0.1.0, v0.2.0 Mar 14, 2019
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

1 participant