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
ExperimentHubData:::makeExperimentHubMetadata should determine package name from DESCRIPTION #1
Comments
Except not everyone stores files on our S3 and making conventions aren't always user determined. We make this constraint to organize data but hosted elsewhere may not. Also, we still wouldn't necessarily know the subdirectory structure determined by the user when uploading the data |
I don't understand; this has nothing to do with how the user uploads the data, but on how the metadata files within the R package are validated. For example, So if you're going to do that already, why not have
be a bit more intelligent and do something like: package <- unname(read.dcf(file.path(pathToPackage, "DESCRIPTION"))[,"Package"]) |
The error you originally referred to had to do with the validation of the rdatapath in the metadata. So your saying you had the package name in the rdatapath of the metadata but because you validated with a ".", It produced an error? |
Three rdatapath in the metadata directly relates to how the file is find on S3 so it is related to the data upload. |
Yes. The key point I am trying to make is that the function should not use the
So there is no way to run
This would not be necessary if the function just extracted the package name from
I have no issue with the inclusion of the package name in the |
Ok. Yes, now I see your point and agree it should be looked at. Thank you for the extra explanation. |
You should now be able to run makeExpeirmentHubData on "." and it will validate the package name appropriately based on the DESCRIPTION:: package. Let me know if you have any further troubles. |
Not propagated yet -- but with most recent versions of AnnotationHubData: 1.21.3 and ExperimentHubData: 1.17.1 |
Okay great. I'll test this out with the next batch of uploads in scRNAseq. |
Currently, it seems to use the
pathToPackage
argument to determine the package name. This leads to stuff like:If you have the
pathToPackage
, you should be able toread.dcf
theDESCRIPTION
to get the actual package name.To be honest, it would be even better if I could just supply the path to the CSV file, and the function would automatically backtrack through the directories to determine the package root. The current design is annoying as it precludes autocompletion of the path.
The text was updated successfully, but these errors were encountered: