-
-
Notifications
You must be signed in to change notification settings - Fork 203
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
feat: sample_chung_lu()
#1416
feat: sample_chung_lu()
#1416
Conversation
Current Aviator status
This PR was merged using Aviator.
See the real-time status of this PR on the
Aviator webapp.
Use the Aviator Chrome Extension
to see the status of your PR within GitHub.
|
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.
Thanks! I glimpsed over the text and the autogenerated code, looks good. Would you add the ellipsis?
R/aaa-auto.R
Outdated
@@ -391,6 +391,25 @@ simple_interconnected_islands_game_impl <- function(islands.n, islands.size, isl | |||
res | |||
} | |||
|
|||
chung_lu_game_impl <- function(out.weights, in.weights=NULL, loops=TRUE, variant=c("original", "maxent", "nr")) { |
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.
Do we want this?
chung_lu_game_impl <- function(out.weights, in.weights=NULL, loops=TRUE, variant=c("original", "maxent", "nr")) { | |
chung_lu_game_impl <- function(out.weights, ..., in.weights=NULL, loops=TRUE, variant=c("original", "maxent", "nr")) { |
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.
No, definitely not. The ellipsis should come after in.weights
, not before. Out- and in-weights go together and users shouldn't be forced to spell out the name of these parameters.
#' degree(sample_chung_lu(c(1, 3, 2, 1), c(2, 1, 2, 2), variant = "maxent"), mode='out') | ||
#' )) | ||
#' @export | ||
sample_chung_lu <- chung_lu_game_impl |
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.
Not sure if we should forward or alias. Both have advantages.
@krlmlr I pushed a commit adding the ellipsis to illustrate. This is what the docs look like now, with the ![]() |
Good point. I pushed a proposal, it's a bit of work but solves the issue at hand and also offers autocomplete for How is |
It's used with |
I think this is done and ready to go, right? |
Thanks! |
46e0f2d
to
bd5a49d
Compare
Thanks @krlmlr ! |
I forgot to mark it as experimental, which is necessary since it's experimental in C. I pushed this change to |
Works for me, as long as the main branch stays green 🙃 |
OK, I'll continue to make simple doc changes on |
Closes #1369.
Translating the documentation was a lot of work. If there are minor stylistic issues to fix, I'd appreciate it if someone could take this over and fix those. Let's try to have this in the next release please.