-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Read named by sheet #10
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@spoltier, see my comments and feedback.
On a general note, it might be good to have more consistency in terms of order of the additional argument, e.g. existsName(String name, String worksheetScope)
vs. getReferenceFormula(String worksheetScope, String name)
. It seems more natural to add it after the name
argument.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@spoltier, some small refinements from a second pass
src/main/java/com/miraisolutions/xlconnect/integration/r/RWorkbookWrapper.java
Outdated
Show resolved
Hide resolved
if(validOnly && !isValidNamedRegion(namedRegion)) continue; | ||
nameNames.add(namedRegion.getNameName()); | ||
} | ||
public String[] getDefinedNames(boolean validOnly, String worksheetScope) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess there is still a "global"/"any" scope?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given some details below I infer that worksheetScope = null
is the "globa"/"any" scope ...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clarification (see miraisolutions/xlconnect#146 (comment) on the R side): worksheetScope = null
means any, worksheetScope = ""
means global scope only
public void createName(String name, String formula, boolean overwrite) { | ||
if(existsName(name)) { | ||
|
||
public void createName(String name, String worksheetScope, String formula, boolean overwrite) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I'm not mistaken, the formula
may include the worksheet name, in which case worksheetScope
would be redundant?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
77b6b22
to
5f0e396
Compare
Co-authored-by: Riccardo Porreca <[email protected]>
Co-authored-by: Riccardo Porreca <[email protected]>
b27657f
to
ae5c94f
Compare
Support #37 - see miraisolutions/xlconnect#146