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
8c33c510
Commit
8c33c510
authored
Jan 04, 2022
by
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
package.php
View file @
8c33c510
...
...
@@ -381,7 +381,7 @@ function findRPackage($os_name, $version_num, $version_name, $keyword, $limit, $
if
(
$repos
==
"cran"
)
{
$json
=
file_get_contents
(
"http://se
er
.r-pkg.org
:9200/cran-devel
/package/_search?size=
$limit
&q=Package:
$keyword
*"
);
$json
=
file_get_contents
(
"http://se
arch
.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://c
ran
.r-project.org/web/packages/
$name
/index.html"
;
$link
=
"https://c
loud
.r-project.org/web/packages/
$name
/index.html"
;
$other
=
"Depends: "
.
$source
[
"Depends"
]
.
"<br/>Imports : "
.
$source
[
"Imports"
];
$package
=
new
Package
(
$name
,
$version
,
$description
,
$link
,
$other
);
...
...
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