Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
jlopez
wicopa
Commits
d837cbf4
Commit
d837cbf4
authored
Jul 10, 2020
by
jlopez
Browse files
Improve find CRAN packages
parent
bd91b5d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
package.php
View file @
d837cbf4
...
...
@@ -296,10 +296,10 @@ function findRPackage($os_name, $version_num, $version_name, $keyword, $limit, $
$source
=
$package
[
"_source"
];
$name
=
$source
[
"Package"
];
$version
=
end
(
$source
[
"
releases
"
]);
$description
=
$source
[
"
Title
"
];
$version
=
end
(
$source
[
"
Version
"
]);
$description
=
$source
[
"
Description
"
];
$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
);
$results
[]
=
$package
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment