Skip to content

add_ssffTrackDefinition() doesn't overwrite existing files even when told to #265

@kirbyj

Description

@kirbyj
> path2ae = file.path(tmpdir(), "emuR_demoData", "ae_emuDB")
> ae = load_emuDB(path2ae, verbose = F)
> remove_ssffTrackDefinition(ae, "fm", deleteFiles = FALSE)
> add_ssffTrackDefinition(ae, "fm", onTheFlyFunctionName = "forest")
There are files present in 'ae' that have the file extention 'fms'! Continuing will overwrite these files! Do you wish to proceed? (y/n) y

... nothing happens. However:

> remove_ssffTrackDefinition(ae, "fm", deleteFiles = TRUE)
> add_ssffTrackDefinition(ae, "fm", onTheFlyFunctionName = "forest")

  INFO: applying forest to 7 files
  |===========================================================================================================| 100%

Shouldn't answering y when asked if it's OK to overwrite the existing files trigger the same behaviour?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions