From wewo|@k| @end|ng |rom gm@||@com  Thu Dec 15 21:47:24 2022
From: wewo|@k| @end|ng |rom gm@||@com (Witold E Wolski)
Date: Thu, 15 Dec 2022 21:47:24 +0100
Subject: [Rd] I do not want that R CMD build removes temp directory
In-Reply-To: <24A51D24-B62A-42E2-94C4-6842EFC87D50@R-project.org>
References: <CAAjnpdg8uLOBBEHWEWq81R+t0sUy=TiTPN_fy2WrgTn2-AWRqA@mail.gmail.com>
 <24A51D24-B62A-42E2-94C4-6842EFC87D50@R-project.org>
Message-ID: <CAAjnpdhUb6eJ78wZd501AH0CnkDYN7TQ0U=sP7RXpYjQTd0Reg@mail.gmail.com>

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 <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



[Rd] I do not want that R CMD build removes temp directory
Witold E Wolski