Re: [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 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 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 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-de...@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel -- Witold Eryk Wolski __ r-de...@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: so...@insa-toulouse.fr http://www.toulouse-biotechnology-institute.fr/en/technology_platforms/mathematics-cell.html __ R-help@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.
Re: [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 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 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 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-de...@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel -- Witold Eryk Wolski __ R-help@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-help@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.
Re: [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 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 > > 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 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-de...@r-project.org mailing list > >>> https://stat.ethz.ch/mailman/listinfo/r-devel > >>> > >> > > > > -- Witold Eryk Wolski __ R-help@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.
Re: [R] [Rd] I do not want that R CMD build removes temp directory
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 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 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-de...@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel __ R-help@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.
Re: [R] [Rd] I do not want that R CMD build removes temp directory
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 :" On Thu, 15 Dec 2022 at 19:09, Simon Urbanek 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 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-de...@r-project.org mailing list > > https://stat.ethz.ch/mailman/listinfo/r-devel > > > -- Witold Eryk Wolski __ R-help@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.
Re: [R] [Rd] I do not want that R CMD build removes temp directory
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 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-de...@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel > __ R-help@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.