-
Notifications
You must be signed in to change notification settings - Fork 5
Readepi no HIS specific dependencies #80
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
base: main
Are you sure you want to change the base?
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.
@Karim-Mane, I will review the vignette next week. But in the functions diagram, change read_readcap
to read_redcap
R/read_from_servers.R
Outdated
query <- sprintf("select * from %s", table_name) | ||
} else if (!is.null(select) && is.null(filter)) { | ||
# subset all rows and specified columns | ||
target_columns <- paste(select, collapse = ", ") |
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.
target_columns <- paste(select, collapse = ", ") | |
target_columns <- glue::glue_collapse(select, sep = ", ") |
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 @Degoot-AM - I will update the figure accordingly.
paste()
is no longer spotted out by lintr. I think it is better to use paste()
and not glue_collapse()
to avoid taking {glue} as a dependency.
R/read_from_servers.R
Outdated
} else { | ||
# subset specified rows and all columns | ||
target_columns <- ifelse(!is.null(select), | ||
paste(select, collapse = ", "), |
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.
paste(select, collapse = ", "), | |
glue::glue_collapse(select, sep = ", ") |
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.
The same as above applies here too.
… in subsequent queries
This PR contains changes to update the data importing from servers function according to the design vignette.