Commit 8c33c510 authored by remy's avatar remy
Browse files

"Fixes #26; using 'http://search.r-pkg.org/package/_search?...' instead of seer.r-pkg.org:9200"

parent 06d17296
Pipeline #318 failed with stage
in 26 seconds
......@@ -381,7 +381,7 @@ function findRPackage($os_name, $version_num, $version_name, $keyword, $limit, $
if($repos == "cran") {
$json = file_get_contents("http://seer.r-pkg.org:9200/cran-devel/package/_search?size=$limit&q=Package:$keyword*");
$json = file_get_contents("http://search.r-pkg.org/package/_search?size=$limit&q=Package:$keyword*");
$json = json_decode($json, true);
if($json["hits"]) {
......@@ -395,7 +395,7 @@ function findRPackage($os_name, $version_num, $version_name, $keyword, $limit, $
$name = $source["Package"];
$version = $source["Version"];
$description = $source["Description"];
$link = "https://cran.r-project.org/web/packages/$name/index.html";
$link = "https://cloud.r-project.org/web/packages/$name/index.html";
$other = "Depends: ".$source["Depends"]."<br/>Imports : ".$source["Imports"];
$package = new Package($name, $version, $description, $link, $other);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment