Install old version of DBI in R (2.5.0) - r

How to install DBI with R (version 2.5(windows))? I am unable to install DBI (0.2)
I used:
install.packages("DBI", repos="http://cran.r-project.org/src/contrib/Archive/DBI/DBI_0.2-0.tar.gz")
It gives error:
Warning in install.packages("DBI", repos = "http://cran.r-project.org/src/contrib/Archive/DBI/DBI_0.2-0.tar.gz") :
argument 'lib' is missing: using 'C:\Users\USER\Documents/R/win-library/2.7'
Warning: unable to access index for repository http://cran.r-project.org/src/contrib/Archive/DBI/DBI_0.2-0.tar.gz/bin/windows/contrib/2.7
Warning message:
package ‘DBI’ is not available
If i used the process used in the here(suggest as a duplicate question).
I get this error:
install.packages("http://cran.r-project.org/src/contrib/Archive/DBI/DBI_0.2-0.tar.gz",repos=NULL, type="source")
Warning in install.packages("http://cran.r-project.org/src/contrib/Archive/DBI/DBI_0.2-0.tar.gz", :
argument 'lib' is missing: using 'C:\Users\USER\Documents/R/win-library/2.7'
Can't locate R/Dcf.pm in #INC (#INC contains: C \PROGRA~2\R\R-27~1.0\share\perl; /usr/lib/perl5/5.8.8/msys /usr/lib/perl5/5.8.8 /usr/lib/perl5/site_perl/5.8.8/msys /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl .) at C:\PROGRA~2\R\R-27~1.0/bin/INSTALL line 23.
BEGIN failed--compilation aborted at C:\PROGRA~2\R\R-27~1.0/bin/INSTALL line 23.
Warning message:
In install.packages("http://cran.r-project.org/src/contrib/Archive/DBI/DBI_0.2-0.tar.gz", :
installation of package 'http://cran.r-project.org/src/contrib/Archive/DBI/DBI_0.2-0.tar.gz' had non-zero exit status
How to install old version of DBI in R?

Related

problem with remotes::install_github("drieslab/GiottoData") or devtools::install_github("drieslab/GiottoData")

I have python and Giotto installed on my Mac M1 chip laptop.
When I try to install another package called "GiottoData" using any of the below three methods: I get this error:
remotes::install_github("drieslab/GiottoData")
#Error: package ‘Giotto’ 1.1.2 was found, but >= 3.0.0 is required by ‘GiottoData’
Execution halted
ERROR: lazy #loading failed for package ‘GiottoData’
#removing ‘/Library/Frameworks/R.framework/Versions/4.2/Resources/library/GiottoData’
Warning message:
In #i.p(...) :
installation of package ‘/var/folders/v9/GiottoData_0.2.0.tar.gz’ had non-zero exit status
Is there a higher version of Giotto that is required to install GiottoData?

Cannot install R packages on a Mac

I am trying to install packages (ANY!) in R on a Mac but it always gives me the same error:
Error in install.packages : type 'binary' is not supported on this platform
I have also tried using:
> install.packages("ggplot2_3.3.3.tar.gz", repos = NULL, type="source") Warning: invalid package ‘ggplot2_3.3.3.tar.gz’ Error: ERROR: no packages specified Warning in install.packages : installation of package ‘ggplot2_3.3.3.tar.gz’ had non-zero exit status
Did not have this problem before.
Can someone help me out please?
Thanks
Valentina

Installing local package on R 3.2.2 failed

Installing an old version of caret on my custom R version was a burden.
I tried using the RStudio installation tool, but failed
I tried the command:
pathToFile <- "C:/Users/Fsociety/Desktop/caret_5.17-7.tar"
install.packages(pathToFile,repos = NULL, type = "source")
I got this error:
Warning: invalid package 'C:/Users/Fsociety/Desktop/caret_5.17-7.tar'
Error: ERROR: no packages specified
Warning in install.packages :
running command '"C:/PROGRA~1/RRO/RRO-32~1.0/R-32~1.2/bin/x64/R" CMD INSTALL -l "C:\Users\Fsociety\Documents\R\win-library\3.2" "C:/Users/Fsociety/Desktop/caret_5.17-7.tar"' had status 1
Warning in install.packages :
installation of package ‘C:/Users/Fsociety/Desktop/caret_5.17-7.tar’ had non-zero exit status
Is there any thing wrong with the install.package that I can fix?

base64enc unable to install

I tried installing base64enc:
install.packages('base64enc',,'http://www.rforge.net/base64enc')
I am getting this error:
Warning: unable to access index for repository http://www.rforge.net/base64enc/bin/windows/contrib/3.1
Warning message:
package ‘base64enc’ is not available (for R version 3.1.2)

Error installing R package - Kernsmooth

I am getting error while installing package KernSmooth. How can I install this pacakge ?
Getting warning messages on not able to access index for repository and one with package not available. Below are example warning message-
Warning: unable to access index for repository
http://lib.stat.cmu.edu/R/CRAN/src/contrib Warning message: package
‘KernSmooth’ is not available (for R version 3.2.1)

Resources