Cannot Install these Specific Packages in R

I am trying to install these packages for a MLR & Caret Learning Requirements: but failed to do so, below is the description

library(devtools)

==============kerndwd===========================

install.packages("kerndwd")
install_url("https://cran.r-project.org/src/contrib/Archive/kerndwd/kerndwd_2.0.2.tar.gz")
* installing *source* package 'kerndwd' ...
** using staged installation
** libs
*** arch - i386
C:/Rtools/mingw_32/bin/gfortran      -O3  -mtune=generic -c  dwd.f90 -o dwd.o
make: C:/Rtools/mingw_32/bin/gfortran: Command not found
make: *** [C:/PROGRA~1/R/R-36~1.1/etc/i386/Makeconf:236: dwd.o] Error 127
ERROR: compilation failed for package 'kerndwd'
* removing 'C:/Users/User/Documents/R/win-library/3.6/kerndwd'
Error: Failed to install 'unknown package' from URL:
 (converted from warning) installation of package β€˜C:/Users/User/AppData/Local/Temp/RtmpgnwPZl/filed8c47c72cf0/kerndwd_2.0.2.tar.gz’ had non-zero exit status

==============sdwd==============================

install.packages("sdwd")
install_url("https://cran.r-project.org/src/contrib/Archive/sdwd/sdwd_1.0.3.tar.gz")
* installing *source* package 'sdwd' ...
** using staged installation
** libs
*** arch - i386
C:/Rtools/mingw_32/bin/gfortran      -O3  -mtune=generic -c  auxiliary.f90 -o auxiliary.o
make: C:/Rtools/mingw_32/bin/gfortran: Command not found
make: *** [C:/PROGRA~1/R/R-36~1.1/etc/i386/Makeconf:236: auxiliary.o] Error 127
ERROR: compilation failed for package 'sdwd'
* removing 'C:/Users/User/Documents/R/win-library/3.6/sdwd'
Error: Failed to install 'unknown package' from URL:
 (converted from warning) installation of package β€˜C:/Users/User/AppData/Local/Temp/RtmpgnwPZl/filed8c43f746c9/sdwd_1.0.3.tar.gz’ had non-zero exit status

============flare=============================

install.packages("flare")
install_url("https://cran.r-project.org/src/contrib/Archive/flare/flare_1.6.0.tar.gz")

C:/Rtools/mingw_32/bin/gcc  -I"C:/PROGRA~1/R/R-36~1.1/include" -DNDEBUG          -O3 -Wall  -std=gnu99 -mtune=generic -c SFGen.c -o SFGen.o
sh: C:/Rtools/mingw_32/bin/gcc: No such file or directory
make: *** [C:/PROGRA~1/R/R-36~1.1/etc/i386/Makeconf:208: SFGen.o] Error 127
ERROR: compilation failed for package 'flare'
* removing 'C:/Users/User/Documents/R/win-library/3.6/flare'

Can Anyone help clarify? is the Package Broken or is there someway to install these Packages? Thankyou in Advance

You have problems with installing source packages that have to be compiled.
And when I try to install it I get for the latest R version in Windows 10:

library(devtools)
#> Loading required package: usethis
install.packages("flare")
#> Installing package into 'D:/tools/R/Packages'
#> (as 'lib' is unspecified)
#> Warning: package 'flare' is not available (for R version 4.0.2)

Created on 2020-07-09 by the reprex package (v0.3.0)

So not sure what to advise you:

  • apparently you have a source (pun not intended) that could compile if you had the correct RTools toolset installed. You could take the (small) trouble of installing it. But is this worth (?) the trouble given that
  • the flare package (I looked only at this package so the other packages you need could be still available) is no longer available on CRAN (and on GitHub ?) . Why is this: no longer supported or ?
  • at some time you will going to use version 4.x.y for R and then you will have to install the newer RTools version

You seem to be missing the 32-bit compiler, if you have a 32-bit system (or you have a 32-bit R version installed on a 64-bit system) you need to install the 32-bit RTools version.

If your system is 64-bit and you don't need the 32-bit R version then simply uninstall it to avoid this issue.

1 Like

@nirgrahamuk, wow, using renv works, brilliant! but I wonder why I cannot access it directly? every time I tried to visit the https://mran.microsoft.com/snapshot/2019-07-08/bin/windows, it always redirected to https://cran.microsoft.com/snapshot/2019-07-08/bin/windows.. How can I check it directly to see what package is available?

Noted, I will apply it for the future :smiley:

The redirected url is fine, just follow on to contrib folder then your r version, and there's the list of binaries

I see, I Found it, thanks very much :ok_hand:

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

Hi @andresrcs, Thanks for replying, yes when I look carefully the 32-bit compiler doesn't install correctly in my local machine, today I already installed it both 32 Bit-64Bit Rtools v3.5 is standby. Now I successfully installed the kerndwd and sdwd packages, but no luck with flare packages, here is the last log when I tried to install the flare packages

install_url("https://cran.r-project.org/src/contrib/Archive/flare/flare_1.6.0.tar.gz")


Downloading package from url: https://cran.r-project.org/src/contrib/Archive/flare/flare_1.6.0.tar.gz
√  checking for file 'C:\Users\User\AppData\Local\Temp\RtmpIvesYl\remotes1978219737bd\flare/DESCRIPTION' (5.5s)
-  preparing 'flare':
√  checking DESCRIPTION meta-information ... 
-  cleaning src
√  checking vignette meta-information
-  checking for LF line-endings in source and make files and shell scripts (507ms)
-  checking for empty or unneeded directories
-  looking to see if a 'data/datalist' file should be added
-  building 'flare_1.6.0.tar.gz'

Installing package into β€˜C:/Users/User/Documents/R/win-library/3.6’
(as β€˜lib’ is unspecified)
* installing *source* package 'flare' ...
** using staged installation
** libs

*** arch - i386
C:/Rtools/mingw_32/bin/gcc  -I"C:/PROGRA~1/R/R-36~1.1/include" -DNDEBUG          -O3 -Wall  -std=gnu99 -mtune=generic -c SFGen.c -o SFGen.o
C:/Rtools/mingw_32/bin/gcc  -I"C:/PROGRA~1/R/R-36~1.1/include" -DNDEBUG          -O3 -Wall  -std=gnu99 -mtune=generic -c euc_proj.c -o euc_proj.o
C:/Rtools/mingw_32/bin/gcc  -I"C:/PROGRA~1/R/R-36~1.1/include" -DNDEBUG          -O3 -Wall  -std=gnu99 -mtune=generic -c mymath.c -o mymath.o
mymath.c: In function 'max_fabs_vc':
mymath.c:141:11: warning: variable 'cnt' set but not used [-Wunused-but-set-variable]
     int i,cnt;
           ^
C:/Rtools/mingw_32/bin/gcc  -I"C:/PROGRA~1/R/R-36~1.1/include" -DNDEBUG          -O3 -Wall  -std=gnu99 -mtune=generic -c registerDynamicSymbol.c -o registerDynamicSymbol.o
C:/Rtools/mingw_32/bin/gcc  -I"C:/PROGRA~1/R/R-36~1.1/include" -DNDEBUG          -O3 -Wall  -std=gnu99 -mtune=generic -c slim_dantzig_ladm_scr.c -o slim_dantzig_ladm_scr.o
slim_dantzig_ladm_scr.c: In function 'slim_dantzig_ladm_scr':
slim_dantzig_ladm_scr.c:262:24: warning: variable 'zero' set but not used [-Wunused-but-set-variable]
     double T,T1,T2,rho,zero,eps,eps1,eps2,ilambda;
                        ^
slim_dantzig_ladm_scr.c:261:15: warning: variable 'ndata' set but not used [-Wunused-but-set-variable]
     int j,k,m,ndata,dim,nlambda,ite1,ite2,ite,max_ite0,max_ite1,max_ite2,num_scr,num_scr1,num_scr2,num_scr1_tmp,num_scr2_tmp,flag,flag1,flag2;
               ^
slim_dantzig_ladm_scr.c: In function 'slim_dantzig_ladm_scr2':
slim_dantzig_ladm_scr.c:411:21: warning: variable 'zero' set but not used [-Wunused-but-set-variable]
     double T,T1,rho,zero,eps,eps1,ilambda;
                     ^
slim_dantzig_ladm_scr.c:410:15: warning: variable 'ndata' set but not used [-Wunused-but-set-variable]
     int j,k,m,ndata,dim,nlambda,ite1,ite,max_ite0,max_ite1,num_scr,num_scr1,num_scr1_tmp,flag,flag1;
               ^
C:/Rtools/mingw_32/bin/gcc  -I"C:/PROGRA~1/R/R-36~1.1/include" -DNDEBUG          -O3 -Wall  -std=gnu99 -mtune=generic -c slim_lad_ladm_scr_btr.c -o slim_lad_ladm_scr_btr.o
slim_lad_ladm_scr_btr.c: In function 'slim_lad_ladm_scr_btr':
slim_lad_ladm_scr_btr.c:236:24: warning: variable 'zero' set but not used [-Wunused-but-set-variable]
     double T,T1,T2,rho,zero,eps,eps1,eps2,ilambda,nrholamb;
                        ^
C:/Rtools/mingw_32/bin/gcc  -I"C:/PROGRA~1/R/R-36~1.1/include" -DNDEBUG          -O3 -Wall  -std=gnu99 -mtune=generic -c slim_lasso_ladm_scr.c -o slim_lasso_ladm_scr.o
slim_lasso_ladm_scr.c: In function 'lasso_ladm_scr':
slim_lasso_ladm_scr.c:12:58: warning: variable 'epsT' set but not used [-Wunused-but-set-variable]
     double gap_ext,max_dif,beta_dif,threshold,tmpd,ratio,epsT;
                                                          ^
slim_lasso_ladm_scr.c:12:52: warning: variable 'ratio' set but not used [-Wunused-but-set-variable]
     double gap_ext,max_dif,beta_dif,threshold,tmpd,ratio,epsT;
                                                    ^
slim_lasso_ladm_scr.c: In function 'slim_lasso_ladm_scr':
slim_lasso_ladm_scr.c:183:24: warning: variable 'zero' set but not used [-Wunused-but-set-variable]
     double T,T1,T2,rho,zero,eps,eps1,eps2,ilambda;
                        ^
C:/Rtools/mingw_32/bin/gcc  -I"C:/PROGRA~1/R/R-36~1.1/include" -DNDEBUG          -O3 -Wall  -std=gnu99 -mtune=generic -c slim_lq_ladm_scr_btr.c -o slim_lq_ladm_scr_btr.o
slim_lq_ladm_scr_btr.c: In function 'slim_lq_ladm_scr_btr':
slim_lq_ladm_scr_btr.c:242:24: warning: variable 'zero' set but not used [-Wunused-but-set-variable]
     double T,T1,T2,rho,zero,eps,eps1,eps2,ilambda,nrholamb,qrtn;
                        ^
C:/Rtools/mingw_32/bin/gcc  -I"C:/PROGRA~1/R/R-36~1.1/include" -DNDEBUG          -O3 -Wall  -std=gnu99 -mtune=generic -c slim_sqrt_ladm_scr.c -o slim_sqrt_ladm_scr.o
slim_sqrt_ladm_scr.c: In function 'sqrt_ladm_scr':
slim_sqrt_ladm_scr.c:12:92: warning: variable 'epsT' set but not used [-Wunused-but-set-variable]
     double gap_ext,max_dif,alp_dif,beta_dif,mu_dif,threshold,tmpd,alp_tild_sq,alp_th,ratio,epsT;
                                                                                            ^
slim_sqrt_ladm_scr.c:12:86: warning: variable 'ratio' set but not used [-Wunused-but-set-variable]
     double gap_ext,max_dif,alp_dif,beta_dif,mu_dif,threshold,tmpd,alp_tild_sq,alp_th,ratio,epsT;
                                                                                      ^
slim_sqrt_ladm_scr.c: In function 'slim_sqrt_ladm_scr':
slim_sqrt_ladm_scr.c:285:24: warning: variable 'zero' set but not used [-Wunused-but-set-variable]
     double T,T1,T2,rho,zero,eps,eps1,eps2,ilambda,sqrtn,nrholamb;
                        ^
C:/Rtools/mingw_32/bin/gcc  -I"C:/PROGRA~1/R/R-36~1.1/include" -DNDEBUG          -O3 -Wall  -std=gnu99 -mtune=generic -c slimh.c -o slimh.o
C:/Rtools/mingw_32/bin/gcc  -I"C:/PROGRA~1/R/R-36~1.1/include" -DNDEBUG          -O3 -Wall  -std=gnu99 -mtune=generic -c sugm_clime_ladm_scr.c -o sugm_clime_ladm_scr.o
sugm_clime_ladm_scr.c: In function 'sugm_clime_ladm_scr':
sugm_clime_ladm_scr.c:11:24: warning: variable 'zero' set but not used [-Wunused-but-set-variable]
     double T,T1,T2,rho,zero,eps,eps1,eps2,ilambda;
                        ^
C:/Rtools/mingw_32/bin/gcc  -I"C:/PROGRA~1/R/R-36~1.1/include" -DNDEBUG          -O3 -Wall  -std=gnu99 -mtune=generic -c sugm_tiger_ladm_scr.c -o sugm_tiger_ladm_scr.o
sugm_tiger_ladm_scr.c: In function 'tiger_lasso_ladm_scr':
sugm_tiger_ladm_scr.c:12:58: warning: variable 'epsT' set but not used [-Wunused-but-set-variable]
     double gap_ext,max_dif,beta_dif,threshold,tmpd,ratio,epsT,tau0,tau1,tmp;
                                                          ^
sugm_tiger_ladm_scr.c:12:52: warning: variable 'ratio' set but not used [-Wunused-but-set-variable]
     double gap_ext,max_dif,beta_dif,threshold,tmpd,ratio,epsT,tau0,tau1,tmp;
                                                    ^
sugm_tiger_ladm_scr.c: In function 'sugm_tiger_ladm_scr':
sugm_tiger_ladm_scr.c:205:24: warning: variable 'zero' set but not used [-Wunused-but-set-variable]
     double T,T1,T2,rho,zero,eps,eps1,eps2,ilambda,sqrtn,nrholamb,tau0;
                        ^
C:/Rtools/mingw_32/bin/gcc -shared -s -static-libgcc -o flare.dll tmp.def SFGen.o euc_proj.o mymath.o registerDynamicSymbol.o slim_dantzig_ladm_scr.o slim_lad_ladm_scr_btr.o slim_lasso_ladm_scr.o slim_lq_ladm_scr_btr.o slim_sqrt_ladm_scr.o slimh.o sugm_clime_ladm_scr.o sugm_tiger_ladm_scr.o -LC:/PROGRA~1/R/R-36~1.1/bin/i386 -lR
installing to C:/Users/User/Documents/R/win-library/3.6/00LOCK-flare/00new/flare/libs/i386

*** arch - x64
C:/Rtools/mingw_64/bin/gcc  -I"C:/PROGRA~1/R/R-36~1.1/include" -DNDEBUG          -O2 -Wall  -std=gnu99 -mtune=generic -c SFGen.c -o SFGen.o
C:/Rtools/mingw_64/bin/gcc  -I"C:/PROGRA~1/R/R-36~1.1/include" -DNDEBUG          -O2 -Wall  -std=gnu99 -mtune=generic -c euc_proj.c -o euc_proj.o
C:/Rtools/mingw_64/bin/gcc  -I"C:/PROGRA~1/R/R-36~1.1/include" -DNDEBUG          -O2 -Wall  -std=gnu99 -mtune=generic -c mymath.c -o mymath.o
mymath.c: In function 'max_fabs_vc':
mymath.c:141:11: warning: variable 'cnt' set but not used [-Wunused-but-set-variable]
     int i,cnt;
           ^
C:/Rtools/mingw_64/bin/gcc  -I"C:/PROGRA~1/R/R-36~1.1/include" -DNDEBUG          -O2 -Wall  -std=gnu99 -mtune=generic -c registerDynamicSymbol.c -o registerDynamicSymbol.o
C:/Rtools/mingw_64/bin/gcc  -I"C:/PROGRA~1/R/R-36~1.1/include" -DNDEBUG          -O2 -Wall  -std=gnu99 -mtune=generic -c slim_dantzig_ladm_scr.c -o slim_dantzig_ladm_scr.o
slim_dantzig_ladm_scr.c: In function 'slim_dantzig_ladm_scr':
slim_dantzig_ladm_scr.c:262:24: warning: variable 'zero' set but not used [-Wunused-but-set-variable]
     double T,T1,T2,rho,zero,eps,eps1,eps2,ilambda;
                        ^
slim_dantzig_ladm_scr.c:261:15: warning: variable 'ndata' set but not used [-Wunused-but-set-variable]
     int j,k,m,ndata,dim,nlambda,ite1,ite2,ite,max_ite0,max_ite1,max_ite2,num_scr,num_scr1,num_scr2,num_scr1_tmp,num_scr2_tmp,flag,flag1,flag2;
               ^
slim_dantzig_ladm_scr.c: In function 'slim_dantzig_ladm_scr2':
slim_dantzig_ladm_scr.c:411:21: warning: variable 'zero' set but not used [-Wunused-but-set-variable]
     double T,T1,rho,zero,eps,eps1,ilambda;
                     ^
slim_dantzig_ladm_scr.c:410:15: warning: variable 'ndata' set but not used [-Wunused-but-set-variable]
     int j,k,m,ndata,dim,nlambda,ite1,ite,max_ite0,max_ite1,num_scr,num_scr1,num_scr1_tmp,flag,flag1;
               ^
C:/Rtools/mingw_64/bin/gcc  -I"C:/PROGRA~1/R/R-36~1.1/include" -DNDEBUG          -O2 -Wall  -std=gnu99 -mtune=generic -c slim_lad_ladm_scr_btr.c -o slim_lad_ladm_scr_btr.o
slim_lad_ladm_scr_btr.c: In function 'slim_lad_ladm_scr_btr':
slim_lad_ladm_scr_btr.c:236:24: warning: variable 'zero' set but not used [-Wunused-but-set-variable]
     double T,T1,T2,rho,zero,eps,eps1,eps2,ilambda,nrholamb;
                        ^
C:/Rtools/mingw_64/bin/gcc  -I"C:/PROGRA~1/R/R-36~1.1/include" -DNDEBUG          -O2 -Wall  -std=gnu99 -mtune=generic -c slim_lasso_ladm_scr.c -o slim_lasso_ladm_scr.o
slim_lasso_ladm_scr.c: In function 'lasso_ladm_scr':
slim_lasso_ladm_scr.c:12:58: warning: variable 'epsT' set but not used [-Wunused-but-set-variable]
     double gap_ext,max_dif,beta_dif,threshold,tmpd,ratio,epsT;
                                                          ^
slim_lasso_ladm_scr.c:12:52: warning: variable 'ratio' set but not used [-Wunused-but-set-variable]
     double gap_ext,max_dif,beta_dif,threshold,tmpd,ratio,epsT;
                                                    ^
slim_lasso_ladm_scr.c: In function 'slim_lasso_ladm_scr':
slim_lasso_ladm_scr.c:183:24: warning: variable 'zero' set but not used [-Wunused-but-set-variable]
     double T,T1,T2,rho,zero,eps,eps1,eps2,ilambda;
                        ^
C:/Rtools/mingw_64/bin/gcc  -I"C:/PROGRA~1/R/R-36~1.1/include" -DNDEBUG          -O2 -Wall  -std=gnu99 -mtune=generic -c slim_lq_ladm_scr_btr.c -o slim_lq_ladm_scr_btr.o
slim_lq_ladm_scr_btr.c: In function 'slim_lq_ladm_scr_btr':
slim_lq_ladm_scr_btr.c:242:24: warning: variable 'zero' set but not used [-Wunused-but-set-variable]
     double T,T1,T2,rho,zero,eps,eps1,eps2,ilambda,nrholamb,qrtn;
                        ^
C:/Rtools/mingw_64/bin/gcc  -I"C:/PROGRA~1/R/R-36~1.1/include" -DNDEBUG          -O2 -Wall  -std=gnu99 -mtune=generic -c slim_sqrt_ladm_scr.c -o slim_sqrt_ladm_scr.o
slim_sqrt_ladm_scr.c: In function 'sqrt_ladm_scr':
slim_sqrt_ladm_scr.c:12:92: warning: variable 'epsT' set but not used [-Wunused-but-set-variable]
     double gap_ext,max_dif,alp_dif,beta_dif,mu_dif,threshold,tmpd,alp_tild_sq,alp_th,ratio,epsT;
                                                                                            ^
slim_sqrt_ladm_scr.c:12:86: warning: variable 'ratio' set but not used [-Wunused-but-set-variable]
     double gap_ext,max_dif,alp_dif,beta_dif,mu_dif,threshold,tmpd,alp_tild_sq,alp_th,ratio,epsT;
                                                                                      ^
slim_sqrt_ladm_scr.c: In function 'slim_sqrt_ladm_scr':
slim_sqrt_ladm_scr.c:285:24: warning: variable 'zero' set but not used [-Wunused-but-set-variable]
     double T,T1,T2,rho,zero,eps,eps1,eps2,ilambda,sqrtn,nrholamb;
                        ^
C:/Rtools/mingw_64/bin/gcc  -I"C:/PROGRA~1/R/R-36~1.1/include" -DNDEBUG          -O2 -Wall  -std=gnu99 -mtune=generic -c slimh.c -o slimh.o
C:/Rtools/mingw_64/bin/gcc  -I"C:/PROGRA~1/R/R-36~1.1/include" -DNDEBUG          -O2 -Wall  -std=gnu99 -mtune=generic -c sugm_clime_ladm_scr.c -o sugm_clime_ladm_scr.o
sugm_clime_ladm_scr.c: In function 'sugm_clime_ladm_scr':
sugm_clime_ladm_scr.c:11:24: warning: variable 'zero' set but not used [-Wunused-but-set-variable]
     double T,T1,T2,rho,zero,eps,eps1,eps2,ilambda;
                        ^
C:/Rtools/mingw_64/bin/gcc  -I"C:/PROGRA~1/R/R-36~1.1/include" -DNDEBUG          -O2 -Wall  -std=gnu99 -mtune=generic -c sugm_tiger_ladm_scr.c -o sugm_tiger_ladm_scr.o
sugm_tiger_ladm_scr.c: In function 'tiger_lasso_ladm_scr':
sugm_tiger_ladm_scr.c:12:58: warning: variable 'epsT' set but not used [-Wunused-but-set-variable]
     double gap_ext,max_dif,beta_dif,threshold,tmpd,ratio,epsT,tau0,tau1,tmp;
                                                          ^
sugm_tiger_ladm_scr.c:12:52: warning: variable 'ratio' set but not used [-Wunused-but-set-variable]
     double gap_ext,max_dif,beta_dif,threshold,tmpd,ratio,epsT,tau0,tau1,tmp;
                                                    ^
sugm_tiger_ladm_scr.c: In function 'sugm_tiger_ladm_scr':
sugm_tiger_ladm_scr.c:205:24: warning: variable 'zero' set but not used [-Wunused-but-set-variable]
     double T,T1,T2,rho,zero,eps,eps1,eps2,ilambda,sqrtn,nrholamb,tau0;
                        ^
C:/Rtools/mingw_64/bin/gcc -shared -s -static-libgcc -o flare.dll tmp.def SFGen.o euc_proj.o mymath.o registerDynamicSymbol.o slim_dantzig_ladm_scr.o slim_lad_ladm_scr_btr.o slim_lasso_ladm_scr.o slim_lq_ladm_scr_btr.o slim_sqrt_ladm_scr.o slimh.o sugm_clime_ladm_scr.o sugm_tiger_ladm_scr.o -LC:/PROGRA~1/R/R-36~1.1/bin/x64 -lR
installing to C:/Users/User/Documents/R/win-library/3.6/00LOCK-flare/00new/flare/libs/x64
** R
** data
** inst
** byte-compile and prepare package for lazy loading
Error: (converted from warning) package 'lattice' was built under R version 3.6.3
Execution halted
ERROR: lazy loading failed for package 'flare'
* removing 'C:/Users/User/Documents/R/win-library/3.6/flare'
Error: Failed to install 'unknown package' from URL:
  (converted from warning) installation of package β€˜C:/Users/User/AppData/Local/Temp/RtmpIvesYl/file1978444e5b5a/flare_1.6.0.tar.gz’ had non-zero exit status

@HanOostdijk So actually the flare package is not usable anymore?

You can look at CRAN yourself and see its status.
I see you explicitly try to install the 1.6.0 version.
I think to remembet that there is a later 1.6.2 version. You could try that one.

This is because the binary has been compiled for an R version slightly newer than the one you are using but this might not be a problem so you could try telling R to ignore the warning by running this code before installing.

Sys.setenv(R_REMOTES_NO_ERRORS_FROM_WARNINGS="true")
1 Like

with https://mran.microsoft.com/timemachine you can go back in time to find archived binaries .
Once you know the available you can ask renv installer to grab it for you.
i.e. I went to the mran timemachine, rolled the date back two years. looked up flare and saw that 1.6.0 binary was hosted. Therefore renv would be capable of grabbing it.

renv::install("flare@1.6.0")
#Retrieving 'https://mran.microsoft.com/snapshot/2019-07-08/bin/windows/contrib/3.6/flare_1.6.0.zip' ...
2 Likes