Closed timcadman closed 5 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 97.2%. Comparing base (
6268336
) to head (fbcc330
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
I think this is ok. Just reading a site on package development, and it says: "Packages listed in Suggests are either needed for development tasks or might unlock optional functionality for your users. The lines below indicate that, while your package can take advantage of ggplot2 and testthat, they’re not absolutely required." https://r-pkgs.org/description.html
So I think it's ok that it throws an error if you don't have these installed because the package will still function fine for the user.
Closes issue 46
In the current implementation
.list_to_data_frame
returns a list of lists, not a dataframe. This results in an error when calling the DSI functiondatashield.pkg_status
To test:
Functional test
Login
devtools::load_all("path to molgenis-r-datashield repo") library("DSI") library("dsBaseClient")
builder <- DSI::newDSLoginBuilder() builder$append(server = "study1", url = "http://localhost:8080/", profile = "default", user = "admin", password = "admin", driver = "ArmadilloDriver") logindata <- builder$build()
Run the 3 DSI functions potentially affected by this change
datashield.pkg_status(conns)
Expect a list with two elements: (i) package_status, (ii) version_statusdatashield.workspaces(conns)
Expect a dataframe, number of rows depends on the number (if any) of saved workspaces on the test serverdatashield.methods(conns)
Expect a dataframe with 7 variables: name, type, class, value, package, version & serverCode review
Check build
devtools::check
devtools::build()