Witold E Wolski
2022-Dec-19 09:52 UTC
[R] [Rd] I do not want that R CMD build removes temp directory
Dear Uwe, Unfortunately there isn't much of an output. This is all what I have: $ R CMD INSTALL --log prolfqua Warning: unknown option '--log' * installing to library 'C:/Users/witoldwolski/AppData/Local/R/win-library/4.2' * installing *source* package 'prolfqua' ... ** using staged installation ** R ** data ** inst ** byte-compile and prepare package for lazy loading ERROR: lazy loading failed for package 'prolfqua' * removing 'C:/Users/witoldwolski/AppData/Local/R/win-library/4.2/prolfqua' Also with --no-test-load option the install is failing : $ R CMD INSTALL --clean --no-test-load prolfqua * installing to library 'C:/Users/witoldwolski/AppData/Local/R/win-library/4.2' * installing *source* package 'prolfqua' ... ** using staged installation ** R ** data ** inst ** byte-compile and prepare package for lazy loading ERROR: lazy loading failed for package 'prolfqua' * removing 'C:/Users/witoldwolski/AppData/Local/R/win-library/4.2/prolfqua' And including "--no-clean-on-error" also does not help because the installation directory is empty. Tested the install, on macos M1, linux ARM64, linux x86, Windows 64, and it works everywhere except Parallels Windows 64 on ARM M1. R version 4.2.2 (2022-10-31 ucrt) -- "Innocent and Trusting" Copyright (C) 2022 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 (64-bit) best regards Witek On Fri, 16 Dec 2022 at 11:24, Uwe Ligges <ligges at statistik.tu-dortmund.de> wrote:> > > > On 15.12.2022 21:47, Witold E Wolski wrote: > > Thank you Simon, > > > > It seems not to be related to the R package but rather to the OS, > > (just got the same error when installing the shiny R package from > > CRAN). > > I am on an M1 mac running Windows ARM in Parallels. Installed a > > x86_64-w64 R version. > > > > > > > > "** byte-compile and prepare package for lazy loading > > ERROR: lazy loading failed for package 'shiny' > > * removing 'C:/Users/witoldwolski/AppData/Local/R/win-library/4.2/shiny' > > Warning in install.packages :" > > Can we please have the full output? > > Best, > Uwe Ligges > > > > > On Thu, 15 Dec 2022 at 19:09, Simon Urbanek <simon.urbanek at r-project.org> wrote: > >> > >> Yes: > >> > >> $ R CMD INSTALL --help | grep error > >> --no-clean-on-error do not remove installed package on error > >> > >> But probably more commonly used way is to install the package from its unpacked directory as that avoids the use of temporary directories in the first place. > >> > >> In you case you can also use --no-test-load and the non-functional package will still be installed so you can inspect it. > >> > >> Cheers, > >> Simon > >> > >> PS: please don't cross-post > >> > >> > >>> On Dec 16, 2022, at 7:01 AM, Witold E Wolski <wewolski at gmail.com> wrote: > >>> > >>> I am getting a package build error, and can not figure out the problem. > >>> The error is > >>> " > >>> ERROR: lazy loading failed for package 'prolfqua' > >>> * removing 'C:/Users/ > >>> " > >>> However since R CMD build removes the temp directory and does not give > >>> any other errors how can I find out what the build problem is? > >>> > >>> Is there a way to disable the temp directory removal? > >>> > >>> Best Regards > >>> Witek > >>> -- > >>> Witold Eryk Wolski > >>> > >>> ______________________________________________ > >>> R-devel at r-project.org mailing list > >>> https://stat.ethz.ch/mailman/listinfo/r-devel > >>> > >> > > > >-- Witold Eryk Wolski
Uwe Ligges
2022-Dec-19 10:08 UTC
[R] [Rd] I do not want that R CMD build removes temp directory
Ah, before that you wrote "" ERROR: lazy loading failed for package 'prolfqua' * removing 'C:Users " and C:Users without a slash sonds suspicious. Now with the new output I do not see where the issue is from. Does this also happen when you try it on winbuilder? Best, Uwe Ligges On 19.12.2022 10:52, Witold E Wolski wrote:> Dear Uwe, > > Unfortunately there isn't much of an output. This is all what I have: > > $ R CMD INSTALL --log prolfqua > Warning: unknown option '--log' > * installing to library 'C:/Users/witoldwolski/AppData/Local/R/win-library/4.2' > * installing *source* package 'prolfqua' ... > ** using staged installation > ** R > ** data > ** inst > ** byte-compile and prepare package for lazy loading > ERROR: lazy loading failed for package 'prolfqua' > * removing 'C:/Users/witoldwolski/AppData/Local/R/win-library/4.2/prolfqua' > > Also with --no-test-load option the install is failing : > > $ R CMD INSTALL --clean --no-test-load prolfqua > > * installing to library 'C:/Users/witoldwolski/AppData/Local/R/win-library/4.2' > * installing *source* package 'prolfqua' ... > ** using staged installation > ** R > ** data > ** inst > ** byte-compile and prepare package for lazy loading > ERROR: lazy loading failed for package 'prolfqua' > * removing 'C:/Users/witoldwolski/AppData/Local/R/win-library/4.2/prolfqua' > > And including "--no-clean-on-error" also does not help because the > installation directory is empty. > > > Tested the install, on macos M1, linux ARM64, linux x86, Windows 64, > and it works everywhere except > Parallels Windows 64 on ARM M1. > > R version 4.2.2 (2022-10-31 ucrt) -- "Innocent and Trusting" > Copyright (C) 2022 The R Foundation for Statistical Computing > Platform: x86_64-w64-mingw32/x64 (64-bit) > > best regards > Witek > > > > On Fri, 16 Dec 2022 at 11:24, Uwe Ligges > <ligges at statistik.tu-dortmund.de> wrote: >> >> >> >> On 15.12.2022 21:47, Witold E Wolski wrote: >>> Thank you Simon, >>> >>> It seems not to be related to the R package but rather to the OS, >>> (just got the same error when installing the shiny R package from >>> CRAN). >>> I am on an M1 mac running Windows ARM in Parallels. Installed a >>> x86_64-w64 R version. >>> >>> >>> >>> "** byte-compile and prepare package for lazy loading >>> ERROR: lazy loading failed for package 'shiny' >>> * removing 'C:/Users/witoldwolski/AppData/Local/R/win-library/4.2/shiny' >>> Warning in install.packages :" >> >> Can we please have the full output? >> >> Best, >> Uwe Ligges >> >> >> >>> On Thu, 15 Dec 2022 at 19:09, Simon Urbanek <simon.urbanek at r-project.org> wrote: >>>> >>>> Yes: >>>> >>>> $ R CMD INSTALL --help | grep error >>>> --no-clean-on-error do not remove installed package on error >>>> >>>> But probably more commonly used way is to install the package from its unpacked directory as that avoids the use of temporary directories in the first place. >>>> >>>> In you case you can also use --no-test-load and the non-functional package will still be installed so you can inspect it. >>>> >>>> Cheers, >>>> Simon >>>> >>>> PS: please don't cross-post >>>> >>>> >>>>> On Dec 16, 2022, at 7:01 AM, Witold E Wolski <wewolski at gmail.com> wrote: >>>>> >>>>> I am getting a package build error, and can not figure out the problem. >>>>> The error is >>>>> " >>>>> ERROR: lazy loading failed for package 'prolfqua' >>>>> * removing 'C:/Users/ >>>>> " >>>>> However since R CMD build removes the temp directory and does not give >>>>> any other errors how can I find out what the build problem is? >>>>> >>>>> Is there a way to disable the temp directory removal? >>>>> >>>>> Best Regards >>>>> Witek >>>>> -- >>>>> Witold Eryk Wolski >>>>> >>>>> ______________________________________________ >>>>> R-devel at r-project.org mailing list >>>>> https://stat.ethz.ch/mailman/listinfo/r-devel >>>>> >>>> >>> >>> > > > > -- > Witold Eryk Wolski > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.
Serguei Sokol
2022-Dec-19 10:17 UTC
[R] [Rd] I do not want that R CMD build removes temp directory
Le 19/12/2022 ? 10:52, Witold E Wolski a ?crit?:> Dear Uwe, > > Unfortunately there isn't much of an output. This is all what I have: > > $ R CMD INSTALL --log prolfqua > Warning: unknown option '--log' > * installing to library 'C:/Users/witoldwolski/AppData/Local/R/win-library/4.2' > * installing *source* package 'prolfqua' ... > ** using staged installation > ** R > ** data > ** inst > ** byte-compile and prepare package for lazy loading > ERROR: lazy loading failed for package 'prolfqua' > * removing 'C:/Users/witoldwolski/AppData/Local/R/win-library/4.2/prolfqua' > > Also with --no-test-load option the install is failing : > > $ R CMD INSTALL --clean --no-test-load prolfqua > > * installing to library 'C:/Users/witoldwolski/AppData/Local/R/win-library/4.2' > * installing *source* package 'prolfqua' ... > ** using staged installation > ** R > ** data > ** inst > ** byte-compile and prepare package for lazy loading > ERROR: lazy loading failed for package 'prolfqua' > * removing 'C:/Users/witoldwolski/AppData/Local/R/win-library/4.2/prolfqua' > > And including "--no-clean-on-error" also does not help because the > installation directory is empty.You don't show the full command you run. If you included also "--clean" as in previous command, may be it just does what is asked, i.e. clean the temp dir ? I don't know what prevails: "--clean" or "--no-clean-on-error" if put simultaneously. Best, Serguei.> > > Tested the install, on macos M1, linux ARM64, linux x86, Windows 64, > and it works everywhere except > Parallels Windows 64 on ARM M1. > > R version 4.2.2 (2022-10-31 ucrt) -- "Innocent and Trusting" > Copyright (C) 2022 The R Foundation for Statistical Computing > Platform: x86_64-w64-mingw32/x64 (64-bit) > > best regards > Witek > > > > On Fri, 16 Dec 2022 at 11:24, Uwe Ligges > <ligges at statistik.tu-dortmund.de> wrote: >> >> >> On 15.12.2022 21:47, Witold E Wolski wrote: >>> Thank you Simon, >>> >>> It seems not to be related to the R package but rather to the OS, >>> (just got the same error when installing the shiny R package from >>> CRAN). >>> I am on an M1 mac running Windows ARM in Parallels. Installed a >>> x86_64-w64 R version. >>> >>> >>> >>> "** byte-compile and prepare package for lazy loading >>> ERROR: lazy loading failed for package 'shiny' >>> * removing 'C:/Users/witoldwolski/AppData/Local/R/win-library/4.2/shiny' >>> Warning in install.packages :" >> Can we please have the full output? >> >> Best, >> Uwe Ligges >> >> >> >>> On Thu, 15 Dec 2022 at 19:09, Simon Urbanek <simon.urbanek at r-project.org> wrote: >>>> Yes: >>>> >>>> $ R CMD INSTALL --help | grep error >>>> --no-clean-on-error do not remove installed package on error >>>> >>>> But probably more commonly used way is to install the package from its unpacked directory as that avoids the use of temporary directories in the first place. >>>> >>>> In you case you can also use --no-test-load and the non-functional package will still be installed so you can inspect it. >>>> >>>> Cheers, >>>> Simon >>>> >>>> PS: please don't cross-post >>>> >>>> >>>>> On Dec 16, 2022, at 7:01 AM, Witold E Wolski <wewolski at gmail.com> wrote: >>>>> >>>>> I am getting a package build error, and can not figure out the problem. >>>>> The error is >>>>> " >>>>> ERROR: lazy loading failed for package 'prolfqua' >>>>> * removing 'C:/Users/ >>>>> " >>>>> However since R CMD build removes the temp directory and does not give >>>>> any other errors how can I find out what the build problem is? >>>>> >>>>> Is there a way to disable the temp directory removal? >>>>> >>>>> Best Regards >>>>> Witek >>>>> -- >>>>> Witold Eryk Wolski >>>>> >>>>> ______________________________________________ >>>>> R-devel at r-project.org mailing list >>>>> https://stat.ethz.ch/mailman/listinfo/r-devel >>>>> >>> > > > -- > Witold Eryk Wolski > > ______________________________________________ > R-devel at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel-- Serguei Sokol Ingenieur de recherche INRAE Cellule Math?matiques TBI, INSA/INRAE UMR 792, INSA/CNRS UMR 5504 135 Avenue de Rangueil 31077 Toulouse Cedex 04 tel: +33 5 61 55 98 49 email: sokol at insa-toulouse.fr http://www.toulouse-biotechnology-institute.fr/en/technology_platforms/mathematics-cell.html
Tomas Kalibera
2022-Dec-19 10:42 UTC
[Rd] [R] I do not want that R CMD build removes temp directory
On 12/19/22 11:08, Uwe Ligges wrote:> Ah, before that you wrote > > "" > ERROR: lazy loading failed for package 'prolfqua' > * removing 'C:Users > " > > and C:Users? without a slash sonds suspicious. Now with the new output > I do not see where the issue is from. Does this also happen when you > try it on winbuilder?You can try Process Monitor (from sysinternals) to get a trace of system calls and failures. There may be something indicative there. If it works in Winbuilder and on your Windows installation, and you don't do anything special in the package, and can't find a way to debug this, you can perhaps assume it is specific to your Parallels Windows installation and ignore. You can try with a shorter username (e.g. "witold" only - up to 8 ASCII characters) - maybe your installation in Parallels doesn't enable short names by default on the used volume - but, this is a guess, the trace would allow to tell more, and I would expect an indicative error message if this were the cause. Best Tomas> > Best, > Uwe Ligges > > On 19.12.2022 10:52, Witold E Wolski wrote: >> Dear Uwe, >> >> Unfortunately there isn't much of an output. This is all what I have: >> >> $ R CMD INSTALL --log prolfqua >> Warning: unknown option '--log' >> * installing to library >> 'C:/Users/witoldwolski/AppData/Local/R/win-library/4.2' >> * installing *source* package 'prolfqua' ... >> ** using staged installation >> ** R >> ** data >> ** inst >> ** byte-compile and prepare package for lazy loading >> ERROR: lazy loading failed for package 'prolfqua' >> * removing >> 'C:/Users/witoldwolski/AppData/Local/R/win-library/4.2/prolfqua' >> >> Also with --no-test-load option the install is failing : >> >> $ R CMD INSTALL --clean --no-test-load prolfqua >> >> * installing to library >> 'C:/Users/witoldwolski/AppData/Local/R/win-library/4.2' >> * installing *source* package 'prolfqua' ... >> ** using staged installation >> ** R >> ** data >> ** inst >> ** byte-compile and prepare package for lazy loading >> ERROR: lazy loading failed for package 'prolfqua' >> * removing >> 'C:/Users/witoldwolski/AppData/Local/R/win-library/4.2/prolfqua' >> >> And including "--no-clean-on-error" also does not help because the >> installation directory is empty. >> >> >> Tested the install, on macos M1, linux ARM64, linux x86, Windows 64, >> and it works everywhere except >> Parallels Windows 64 on ARM M1. >> >> R version 4.2.2 (2022-10-31 ucrt) -- "Innocent and Trusting" >> Copyright (C) 2022 The R Foundation for Statistical Computing >> Platform: x86_64-w64-mingw32/x64 (64-bit) >> >> best regards >> Witek >> >> >> >> On Fri, 16 Dec 2022 at 11:24, Uwe Ligges >> <ligges at statistik.tu-dortmund.de> wrote: >>> >>> >>> >>> On 15.12.2022 21:47, Witold E Wolski wrote: >>>> Thank you Simon, >>>> >>>> It seems not to be related to the R package but rather to the OS, >>>> (just got the same error when installing the shiny R package from >>>> CRAN). >>>> I am on an M1 mac running Windows ARM in Parallels. Installed a >>>> x86_64-w64 R version. >>>> >>>> >>>> >>>> "** byte-compile and prepare package for lazy loading >>>> ERROR: lazy loading failed for package 'shiny' >>>> * removing >>>> 'C:/Users/witoldwolski/AppData/Local/R/win-library/4.2/shiny' >>>> Warning in install.packages :" >>> >>> Can we please have the full output? >>> >>> Best, >>> Uwe Ligges >>> >>> >>> >>>> On Thu, 15 Dec 2022 at 19:09, Simon Urbanek >>>> <simon.urbanek at r-project.org> wrote: >>>>> >>>>> Yes: >>>>> >>>>> $ R CMD INSTALL --help | grep error >>>>> ??????? --no-clean-on-error?????? do not remove installed package >>>>> on error >>>>> >>>>> But probably more commonly used way is to install the package from >>>>> its unpacked directory as that avoids the use of temporary >>>>> directories in the first place. >>>>> >>>>> In you case you can also use --no-test-load and the non-functional >>>>> package will still be installed so you can inspect it. >>>>> >>>>> Cheers, >>>>> Simon >>>>> >>>>> PS: please don't cross-post >>>>> >>>>> >>>>>> On Dec 16, 2022, at 7:01 AM, Witold E Wolski <wewolski at gmail.com> >>>>>> wrote: >>>>>> >>>>>> I am getting a package build error, and can not figure out the >>>>>> problem. >>>>>> The error is >>>>>> " >>>>>> ERROR: lazy loading failed for package 'prolfqua' >>>>>> * removing 'C:/Users/ >>>>>> " >>>>>> However since R CMD build removes the temp directory and does not >>>>>> give >>>>>> any other errors how can I find out what the build problem is? >>>>>> >>>>>> Is there a way to disable the temp directory removal? >>>>>> >>>>>> Best Regards >>>>>> Witek >>>>>> -- >>>>>> Witold Eryk Wolski >>>>>> >>>>>> ______________________________________________ >>>>>> R-devel at r-project.org mailing list >>>>>> https://stat.ethz.ch/mailman/listinfo/r-devel >>>>>> >>>>> >>>> >>>> >> >> >> >> -- >> Witold Eryk Wolski >> >> ______________________________________________ >> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see >> https://stat.ethz.ch/mailman/listinfo/r-help >> PLEASE do read the posting guide >> http://www.R-project.org/posting-guide.html >> and provide commented, minimal, self-contained, reproducible code. > > ______________________________________________ > R-devel at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel