Closed ellisifnygaard closed 1 year ago
Oh, great that you tried that! I was also wondering why I get this error... I haven't had this one when using genDataLoad... Will test to be sure.
Oh, great that you tried that! I was also wondering why I get this error... I haven't had this one when using genDataLoad... Will test to be sure.
I can create a new branch and add overwrite = TRUE
to ffload()
in envDataLoad.R
π Unless you think that overwrite = TRUE
might cause trouble in some cases?
I think it's fine - this overwriting is what we want when running envDataLoad
. :+1:
Result of devtools::test()
on the bug-fix-issue-11 branch:
ββ Results ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Duration: 13.8 s
[ FAIL 0 | WARN 3 | SKIP 0 | PASS 66 ]
Note that these tests do not include the changes made to test_2_envDataSubset.R
on the bug-fix-issue-10 branch, but that should not be an issue.
@jromanowska I will create a pull request, but feel free to do some improvised ad hoc and testthat tests of the changes before you review the pull request π
The following warning always appears when I use
envDataLoad
:It does not seem to matter whether the fileset being loaded was just exported using
envDataRead()
,envDataReadFromObj()
orenvDataSubset()
using the newest version of the package. Even though the data appears to be classified as'cont'
, the warning still shows up when loading the data:I think the reason for this is that the
cont
variable inenvDataLoad.R
is set toNULL
on line 26 andff::fload()
on line 27 subsequently does not overwritecont
to reflect the data being loaded.Possible fix: add
overwrite = TRUE
argument inff::ffload()
Illustration (running code from
envDataLoad.R
):P.S
ff::ffload()
withoutoverwrite = TRUE
is also used in genDataLoad.R in the current version ofhaplin
: https://github.com/cran/Haplin/blob/93c3e77ef3bb74b688c0322d3974c46862a2b5e4/R/genDataLoad.R#L31I don't know whether there might be similar bugs when using
genDataLoad
, but it could be worth looking into π΅οΈββοΈ