Commit d837cbf4 authored by jlopez's avatar jlopez
Browse files

Improve find CRAN packages

parent bd91b5d2
...@@ -296,10 +296,10 @@ function findRPackage($os_name, $version_num, $version_name, $keyword, $limit, $ ...@@ -296,10 +296,10 @@ function findRPackage($os_name, $version_num, $version_name, $keyword, $limit, $
$source = $package["_source"]; $source = $package["_source"];
$name = $source["Package"]; $name = $source["Package"];
$version = end($source["releases"]); $version = end($source["Version"]);
$description = $source["Title"]; $description = $source["Description"];
$link = "https://cran.r-project.org/web/packages/$name/index.html"; $link = "https://cran.r-project.org/web/packages/$name/index.html";
$other = $source["Depends"]; $other = "Depends: ".$source["Depends"]."<br/>Imports : ".$source["Imports"];
$package = new Package($name, $version, $description, $link, $other); $package = new Package($name, $version, $description, $link, $other);
$results[] = $package; $results[] = $package;
......
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