Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
QueryR
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Julien Lopez
QueryR
Commits
3407fc45
Commit
3407fc45
authored
9 years ago
by
Mick Jordan
Browse files
Options
Downloads
Patches
Plain Diff
installcran: regexp fix to blacklist gen; update initial set
parent
f555e366
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
com.oracle.truffle.r.test.cran/r/install.cran.packages.R
+6
-3
6 additions, 3 deletions
com.oracle.truffle.r.test.cran/r/install.cran.packages.R
with
6 additions
and
3 deletions
com.oracle.truffle.r.test.cran/r/install.cran.packages.R
+
6
−
3
View file @
3407fc45
...
...
@@ -11,13 +11,13 @@ usage <- function() {
}
# blacklist is a vector of package (names) that are known to be bad, i.e. uninstallable.
# the result is a vector of new packages that depend/import/
suggest/
linkto any package on blacklist
# the result is a vector of new packages that depend/import/linkto any package on blacklist
create.blacklist.with
<-
function
(
blacklist
,
iter
)
{
this.blacklist
<-
vector
()
trim
<-
function
(
x
)
gsub
(
"^\\s+|\\s+$"
,
""
,
x
)
strip.version
<-
function
(
x
)
gsub
(
"\\s
+
\\(.*\\)$"
,
""
,
x
)
strip.version
<-
function
(
x
)
gsub
(
"\\s
*
\\(.*\\)$"
,
""
,
x
)
if
(
very.verbose
)
{
cat
(
"Iteration: "
,
iter
,
"\n\n"
)
...
...
@@ -39,6 +39,9 @@ create.blacklist.with <- function(blacklist, iter) {
all.deps
<-
append
(
all.deps
,
strip.version
(
trim
(
unlist
(
strsplit
(
deps
,
fixed
=
T
,
","
)))))
}
}
if
(
very.verbose
)
{
cat
(
"all.deps for: "
,
pkgName
,
" "
,
all.deps
,
"\n"
)
}
match.result
<-
match
(
blacklist
,
all.deps
,
nomatch
=
0
)
in.result
<-
match.result
>
0
...
...
@@ -93,7 +96,7 @@ math <- c("mvtnorm")
# serialize
serialize
<-
c
(
"actuar"
,
"spam"
,
"codetools"
,
"iterators"
,
"apc"
,
"apsrtable"
,
"assertthat"
)
# fortran related
fortran
<-
c
(
"appell"
)
fortran
<-
c
(
"appell"
,
"blockmodeling"
,
"clues"
,
"rootSolve"
,
"cts"
,
"bayesQR"
,
"cvplogistic"
)
initial.blacklist
<-
c
(
cplusplus
,
tcltk
,
parserbug
,
core
,
math
,
trufflevisitor.nyi
,
nativeinstall
,
s4
,
graphics
,
serialize
,
fortran
)
create.blacklist
<-
function
()
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment