I'm trying to revive ToPASeq but I'm a noob and I've encountered a few roadblocks.
When I try to install ToPASeq via an older version of R (e.g., R 3.0), I run into problems because biocManager wasn't built for 3.0 and biocLite is also deprecated :(.
> source("https://bioconductor.org/biocLite.R")
Warning in install.packages :
unable to access index for repository https://cran.rstudio.com/bin/windows/contrib/3.1
Error in install.packages : STRING_ELT() can only be applied to a 'character vector', not a 'NULL'
'biocLite.R' failed to install 'BiocInstaller', use 'install.packages("BiocInstaller",
repos="https://bioconductor.org/packages/2.14/bioc")' or 'install.packages("BiocInstaller",
repos="http://bioconductor.org/packages/2.14/bioc")'
> biocLite("ToPASeq")
Error: could not find function "biocLite"
install.packages("BiocInstaller",
+ repos="https://bioconductor.org/packages/2.14/bioc")
Warning in install.packages :
unable to access index for repository https://cran.rstudio.com/bin/windows/contrib/3.1
Error in install.packages : STRING_ELT() can only be applied to a 'character vector', not a 'NULL'
sessionInfo()
R version 3.1.0 (2014-04-10)
Platform: x86_64-w64-mingw32/x64 (64-bit)
locale:
[1] LC_COLLATE=English_Canada.1252 LC_CTYPE=English_Canada.1252 LC_MONETARY=English_Canada.1252
[4] LC_NUMERIC=C LC_TIME=English_Canada.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] tools_3.1.0
I've also tried by installing the source code with Rtools (https://bioc.ism.ac.jp/packages/3.3/bioc/src/contrib/ToPASeq_1.6.0.tar.gz).
I get the dreaded lazy-load fail and non-zero exits status
install.packages(pathToPASeq.tar, repos = NULL, type="source")
Installing package into ‘C:/Users/patri/Documents/R/win-library/4.1’
(as ‘lib’ is unspecified)
* installing *source* package 'ToPASeq' ...
** using staged installation
** libs
*** arch - i386
"C:/rtools40/mingw32/bin/"g++ -std=gnu++11 -I"C:/PROGRA~1/R/R-41~1.3/include" -DNDEBUG -I'C:/Users/patri/Documents/R/win-library/4.1/Rcpp/include' -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c RcppExports.cpp -o RcppExports.o
"C:/rtools40/mingw32/bin/"g++ -std=gnu++11 -I"C:/PROGRA~1/R/R-41~1.3/include" -DNDEBUG -I'C:/Users/patri/Documents/R/win-library/4.1/Rcpp/include' -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c accCpp.cpp -o accCpp.o
"C:/rtools40/mingw32/bin/"g++ -std=gnu++11 -I"C:/PROGRA~1/R/R-41~1.3/include" -DNDEBUG -I'C:/Users/patri/Documents/R/win-library/4.1/Rcpp/include' -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c colMinMax.cpp -o colMinMax.o
"C:/rtools40/mingw32/bin/"g++ -std=gnu++11 -I"C:/PROGRA~1/R/R-41~1.3/include" -DNDEBUG -I'C:/Users/patri/Documents/R/win-library/4.1/Rcpp/include' -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c downstream.cpp -o downstream.o
C:/rtools40/mingw32/bin/g++ -std=gnu++11 -shared -s -static-libgcc -o ToPASeq.dll tmp.def RcppExports.o accCpp.o colMinMax.o downstream.o -LC:/PROGRA~1/R/R-41~1.3/bin/i386 -lR
installing to C:/Users/patri/Documents/R/win-library/4.1/00LOCK-ToPASeq/00new/ToPASeq/libs/i386
*** arch - x64
"C:/rtools40/mingw64/bin/"g++ -std=gnu++11 -I"C:/PROGRA~1/R/R-41~1.3/include" -DNDEBUG -I'C:/Users/patri/Documents/R/win-library/4.1/Rcpp/include' -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c RcppExports.cpp -o RcppExports.o
"C:/rtools40/mingw64/bin/"g++ -std=gnu++11 -I"C:/PROGRA~1/R/R-41~1.3/include" -DNDEBUG -I'C:/Users/patri/Documents/R/win-library/4.1/Rcpp/include' -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c accCpp.cpp -o accCpp.o
"C:/rtools40/mingw64/bin/"g++ -std=gnu++11 -I"C:/PROGRA~1/R/R-41~1.3/include" -DNDEBUG -I'C:/Users/patri/Documents/R/win-library/4.1/Rcpp/include' -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c colMinMax.cpp -o colMinMax.o
"C:/rtools40/mingw64/bin/"g++ -std=gnu++11 -I"C:/PROGRA~1/R/R-41~1.3/include" -DNDEBUG -I'C:/Users/patri/Documents/R/win-library/4.1/Rcpp/include' -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c downstream.cpp -o downstream.o
C:/rtools40/mingw64/bin/g++ -std=gnu++11 -shared -s -static-libgcc -o ToPASeq.dll tmp.def RcppExports.o accCpp.o colMinMax.o downstream.o -LC:/PROGRA~1/R/R-41~1.3/bin/x64 -lR
installing to C:/Users/patri/Documents/R/win-library/4.1/00LOCK-ToPASeq/00new/ToPASeq/libs/x64
** R
** inst
** byte-compile and prepare package for lazy loading
Error in matchSignature(signature, fdef, where) :
more elements in the method signature (2) than in the generic signature (1) for function 'degree'
Error: unable to load R code in package 'ToPASeq'
Execution halted
ERROR: lazy loading failed for package 'ToPASeq'
* removing 'C:/Users/patri/Documents/R/win-library/4.1/ToPASeq'
* restoring previous 'C:/Users/patri/Documents/R/win-library/4.1/ToPASeq'
Warning in install.packages :
installation of package ‘..//ToPASeq_1.6.0.tar.gz’ had non-zero exit status
sessionInfo( )
R version 4.1.3 (2022-03-10)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 22000)
Matrix products: default
locale:
[1] LC_COLLATE=English_Canada.1252 LC_CTYPE=English_Canada.1252 LC_MONETARY=English_Canada.1252
[4] LC_NUMERIC=C LC_TIME=English_Canada.1252
attached base packages:
[1] grid stats graphics grDevices utils datasets methods base
I've also just tried manually extracting the tar file to an R folder in my library which is probably a noob thing to do but I've had success with it in the past for deprecated CRAN packages so I though I'd give it a try.
library(ToPASeq)
Error: package or namespace load failed for ‘ToPASeq’:
package ‘ToPASeq’ was installed before R 4.0.0: please re-install it
Is it possible to install a deprecated bioconductor package? What am I doing wrong? Any help would be overwhelmingly appreciated!
-Patrick