Skip to content

use withr::local_tempdir() instead of tempdir()? #11

@maelle

Description

@maelle

Instead of

csv_path <- file.path(tempdir(), "cetesb-data2")
you could use withr::local_tempdir() (withr would be listed under Suggests in DESCRIPTION) which would have the nice property of being cleaned up after automatically, the directory would be removed automatically after running the test. It also creates the file.

References

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