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
57146561
Commit
57146561
authored
10 years ago
by
Mick Jordan
Browse files
Options
Downloads
Patches
Plain Diff
get visibility correct for options
parent
ed8a3392
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.nodes/src/com/oracle/truffle/r/nodes/builtin/base/Options.java
+4
-0
4 additions, 0 deletions
.../src/com/oracle/truffle/r/nodes/builtin/base/Options.java
with
4 additions
and
0 deletions
com.oracle.truffle.r.nodes/src/com/oracle/truffle/r/nodes/builtin/base/Options.java
+
4
−
0
View file @
57146561
...
...
@@ -54,6 +54,7 @@ public abstract class Options extends RBuiltinNode {
// @Specialization
private
RList
options
(
@SuppressWarnings
(
"unused"
)
RMissing
x
)
{
controlVisibility
();
Set
<
Map
.
Entry
<
String
,
Object
>>
optionSettings
=
ROptions
.
getValues
();
Object
[]
data
=
new
Object
[
optionSettings
.
size
()];
String
[]
names
=
new
String
[
data
.
length
];
...
...
@@ -68,6 +69,7 @@ public abstract class Options extends RBuiltinNode {
@Specialization
public
Object
options
(
Object
args
)
{
controlVisibility
();
if
(
args
instanceof
RMissing
)
{
return
options
((
RMissing
)
args
);
}
else
{
...
...
@@ -98,6 +100,8 @@ public abstract class Options extends RBuiltinNode {
data
[
i
]
=
previousVal
==
null
?
RNull
.
instance
:
previousVal
;
names
[
i
]
=
argName
;
ROptions
.
setValue
(
argName
,
value
);
// any settings means result is invisible
RContext
.
setVisible
(
false
);
}
}
return
RDataFactory
.
createList
(
data
,
RDataFactory
.
createStringVector
(
names
,
RDataFactory
.
COMPLETE_VECTOR
));
...
...
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