You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As in title, saveWidget removed completely all files in my output folder, including .csv datasets, .R files, excel documents etc.
I lost a lot of data, and I couldn't find it even in trash.
I had to use some files recovery tool but why this happened? Is the output folder supposed to be empty before running the script ?
Or there is something wrong with my path symbols/folders names ?
This happened me too. I think the issue is with the libdir option. The directory isn't removed if you omit it. It's not great though, I did lose a directory containing important data.
Fixes#417 and saves users from accidentally deleting important files by throwing an error when the user provides a `libdir` that contains files. This is only an issue when `selfcontained = TRUE` because otherwise the files written into `libdir` are not removed after saving the widget html.
Thank you @jgrzadziel and @meabhm for reporting the issue! I'm sorry you lost files by calling saveWidget(). @meabhm is right that when you provide libdir to render a selfcontained = TRUE widget, the libdir is removed afterwards (because the files were all embedded into the file HTML). In general, you don't need to provide libdir; I think the expectation is that most users wouldn't set libdir.
In any case, thanks to your feedback, I've proposed adding a check that will throw an error if libdir is provided and points to a directory that contains files. Hopefully that will save you and others from a similar fate of disappearing files.
As in title, saveWidget removed completely all files in my output folder, including .csv datasets, .R files, excel documents etc.
I lost a lot of data, and I couldn't find it even in trash.
I had to use some files recovery tool but why this happened? Is the output folder supposed to be empty before running the script ?
Or there is something wrong with my path symbols/folders names ?
This was mu script"
saveWidget(chord_interactive, file = "chord_interactive.html",libdir = "C:/Users/Anna MG/Desktop/Projekty/Lasy - statut/2019/NGS/Z_pola_i_lasu/16S/tables")
Thank you for help
The text was updated successfully, but these errors were encountered: