Dear All, Recently, I found that the SOS package (very helpful package) does not work. When I used the "findFn" function to search something, it always said "found 0 matches" (see below). My desktop system is Win 10 and R version is R-4.1.0. Any suggestion was greatly appreciated. HP> z <- findFn("spline", maxPages = 2)found 0 matches Warning message: In findFn("spline", maxPages = 2) : HIT not found in HTML; processing one page only. [[alternative HTML version deleted]]
Thanks for the question. Two things: ** 1. TRY THE DEVELOPMENT VERSION OBTAINABLE AS FOLLOWS: install.packages('devtools') # if it's not installed library(devtools) install_github("sbgraves237/sos") library(sos) z <- findFn("spline", maxPages = 2) # This should work. ** 2. PLEASE PROVIDE: sessionInfo() "findFn('spline')" just worked for me using both the CRAN and development versions of sos. (2.1-0 from CRAN under Windows 10; 2.1- from GitHub under macOS 11.4; both with R 4.1.0). I need to push the GitHub version to CRAN. However, it would help me if I understood your configuration and if the GitHub version fixes the problem for you. Thanks for the report. I apologize for the inconvenience. Spencer Graves On 8/7/21 2:57 AM, hp wan wrote:> Dear All, > > Recently, I found that the SOS package (very helpful package) does not > work. When I used the "findFn" function to search something, it always > said "found 0 matches" (see below). My desktop system is Win 10 and R > version is R-4.1.0. Any suggestion was greatly appreciated. > > HP > > >> z <- findFn("spline", maxPages = 2) > found 0 matches > Warning message: > In findFn("spline", maxPages = 2) : > HIT not found in HTML; processing one page only. > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at 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. >
Hello, R 4.1.0 on Ubuntu 20.04. I cannot reproduce this: sos::findFn("spline", maxPages = 2) #found 3867 matches; retrieving 2 pages, 40 matches. #2 #Downloaded 40 links in 27 packages. Possible solutions are to close and restart R and to check your internet connection. Is the package updated? packageVersion("sos") #[1] ?2.1.0? Hope this helps, Rui Barradas ?s 08:57 de 07/08/21, hp wan escreveu:> Dear All, > > Recently, I found that the SOS package (very helpful package) does not > work. When I used the "findFn" function to search something, it always > said "found 0 matches" (see below). My desktop system is Win 10 and R > version is R-4.1.0. Any suggestion was greatly appreciated. > > HP > > >> z <- findFn("spline", maxPages = 2) > found 0 matches > Warning message: > In findFn("spline", maxPages = 2) : > HIT not found in HTML; processing one page only. > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at 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. >