-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
When creating a project with no metadata, attempts to set metadata via the set_* calls will fail since the metadata file is not created.
Steps to replicate:
- Create default project using
CIDAtools::create_project()but do not specify any metadata field (analyst, pi, etc). - Run
CIDAtools::set_project_analyst("foo")
This occurs because create_project only builds a metadata file if the metadata is specified:
Lines 31 to 32 in b79ee5b
| # has meta been provided? | |
| meta <- !all(c(ProjectName, PI, analyst, datalocation) %in% "") |
Lines 70 to 76 in b79ee5b
| if(meta){ | |
| dir.create(paste0(path, '/.ProjData')) | |
| ProjData <- list(ProjectName = ProjectName, PI = PI, | |
| analyst = analyst, datalocation = datalocation, | |
| gitlocation = gitlocation) | |
| write.dcf(ProjData, file.path(path, '/.ProjData/Data.dcf')) | |
| } |
We need to either always create the metadata file or have calls to set_* call a function to first create the metadata file instead.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels