-
Notifications
You must be signed in to change notification settings - Fork 159
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
false cache entry from autoloading data #288
Comments
What type of file are you trying to load? The |
Hi @Hugovdberg, > list.data()
filename varname is_ignored is_directory is_cached cache_only reader
README.md FALSE FALSE FALSE FALSE
tcga.ACC tcga.ACC.RData tcga.ACC FALSE FALSE FALSE FALSE rdata.reader I already tried Best regards, |
Ah, now I see what's going on, the variable name is initially determined by ProjectTemplate from the filename. However, After loading the data any new variables in the global environment are cached by their actual name. There are several readers which alter the variable names during loading (eg, all sheets are read from Excel files, and the sheetname is appended to the initial filename). Variables are therefore not cached by the original filename, which unfortunately breaks the link between the file and the cache. There is currently no solution to this problem, besides a rewrite of the data loading system. It would require a file info reader for each file type that reports the exact variable names as they would be created by the corresponding reader. I've done some work on that to create such a framework, but currently don't have the time to continue this major overhaul. |
Report an Issue / Request a Feature
Autoloading data creates a cache entry with the name
data
instead of the name of the datasetI'm submitting a (Check one with "x") :
Issue Severity Classification -
(Check one with "x") :
Expected Behavior
load.project()
creates a cache entry for every file indata/
with the corresponding name of the file indata/
Current Behavior
load.project()
creates a cache entry with the namedata
, ignoring the original name of the file indata/
Steps to Reproduce Behavior
load.project()
with a file indata/
Screenshots
Version Information
R version 3.5.1
Possible Solution
-/-
Best regards,
@aljole
The text was updated successfully, but these errors were encountered: