-
Notifications
You must be signed in to change notification settings - Fork 155
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
DLL 'dplyr' not found: maybe not installed for this architecture? #162
Comments
Thanks for the bug report. Copying the relevant output:
Here's likely what happened:
I think the fix here is to just ensure |
Ah id not realised this was the case. I always use 64 bit but recall during building from source with packrat that both the i386 and x64 variants are built. Does that mean that the i386 build was really redundant as I’d always be using x64. Further, does this mean that only one build will be done now for each package in effect halving restore time? |
Yes indeed! (Not quite half, but it should be substantially faster) |
This should be fixed now, so I'll close this issue -- please feel free to re-open if you bump into this again. |
Hi, I didnt get the solution. I initialized renv. Then I opened the activate.R file which created and add ("--preclean", "--no-multiarch")
Then I opened again R and try to install a package but again the same:
|
The activate script is used only for installing A reproducible example would be helpful. |
So where I should add the "--no-multiarch" in order to avoid installing the packages in multiple arch? |
It would have to happen in your call to E.g. for
I'm assuming something similar would work for |
--> I'm assuming something similar would work for Thanks it worked. --> Ultimately though, isn't this issue independent of Thank you again, |
Just to let you know: I have the same issue installing a package from github IssueCalling: remotes::install_github("CorradoLanera/depigner") It produced: Using github PAT from envvar GITHUB_PAT
Downloading GitHub repo CorradoLanera/depigner@master
√ checking for file 'C:\Users\corra\AppData\Local\Temp\RtmpKMO9tr\remotes28e0197a2ceb\CorradoLanera-depigner-cc06d2f/DESCRIPTION' (394ms)
- preparing 'depigner': (340ms)
√ checking DESCRIPTION meta-information ...
- checking for LF line-endings in source and make files and shell scripts (347ms)
- checking for empty or unneeded directories
- looking to see if a 'data/datalist' file should be added
- building 'depigner_0.5.1.tar.gz'
Installing package into ‘C:/Users/corra/Documents/<path_to_my_project>/renv/library/R-3.6/x86_64-w64-mingw32’
(as ‘lib’ is unspecified)
* installing *source* package 'depigner' ...
** using staged installation
** R
** data
*** moving datasets to lazyload DB
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
converting help for package 'depigner'
finding HTML links ... done
Arthritis html
adjust_p html
check_for_bot_options html
check_pkg html
ci2p html
depigner-package html
errors_to_telegram html
gdp html
paired_test_categorical html
paired_test_continuous html
pb_len html
pipe html
Rd warning: C:/Users/corra/AppData/Local/Temp/Rtmp61AlWg/R.INSTALL44a0737b9d9/depigner/man/pipe.Rd:10: file link '%>%' in package 'magrittr' does not exist and so has been treated as a topic
please_install html
send_to_telegram html
start_bot_for_chat html
finding level-2 HTML links ... done
Rd warning: C:/Users/corra/AppData/Local/Temp/Rtmp61AlWg/R.INSTALL44a0737b9d9/depigner/man/start_bot_for_chat.Rd:49: file link 'edit_r_environ' in package 'usethis' does not exist and so has been treated as a topic
summary_interact html
tidy_summary html
ubesp_pkg html
use_ui html
** building package indices
** testing if installed package can be loaded from temporary location
*** arch - i386
Error: package or namespace load failed for 'depigner' in library.dynam(lib, package, package.lib):
DLL 'glue' not found: maybe not installed for this architecture?
Error: loading failed
Execution halted
*** arch - x64
Welcome to depigner: we are here to un-stress you!
ERROR: loading failed for 'i386'
* removing 'C:/Users/corra/Documents/<path_to_my_project>/renv/library/R-3.6/x86_64-w64-mingw32/depigner'
Error: Failed to install 'depigner' from GitHub:
(converted from warning) installation of package ‘C:/Users/corra/AppData/Local/Temp/RtmpKMO9tr/file28e016e26e87/depigner_0.5.1.tar.gz’ had non-zero exit status SolutionSolved by your strategy: remotes::install_github("CorradoLanera/depigner",
INSTALL_opts = c("--no-multiarch")
) Thanks! |
I had an identical issue with not being able to install an internal git repo from Azure repos to local The The |
5.txt
Hi @kevinushey,
Some further findings from the pipeline I've got set up. I seem to be having problems with a number of packages that have been migrated from the packrat cache to the renv cache.
The migrate works fine in the it makes the correct lock file but then when it is trying to restore it seems to fail due to DLL's not found. From reading online this is usually due to a corrupt install and the suggestion is to delete and reinstall. Problem packages started at rlang but as I deleted those I had to delete Rcpp, processx, glue and so on.
My initial thought was were these compiled with a different version of R but that wouldn't be the case as our packrat pipeline set a version specific cache.
I wonder what the problem going on here is and if there is a more elegant solution. I.e. rather than saying DLL not found could it not try and reinstall it?
Wider would be good to understand whats going on here as i'm pretty sure other projects with these packages have worked. Potentially the linking isn't working as expected when installing from source?
Log file attached,
Regards,
Adam
The text was updated successfully, but these errors were encountered: