Do not fail if a namespace cannot be loaded.#4
Conversation
|
Thanks! Wouldn't it be better no to try to load it at all? The point of using getNamespaceVersion was to detect the rare case when the loaded version is different from the on-disk version. If the package is not loaded, we can just keep the loaded version empty. Anyway, I can merge this now, and change it later. |
|
Maybe, I can do that instead, one sec, will update the PR. |
Codecov Report
@@ Coverage Diff @@
## master #4 +/- ##
=====================================
Coverage 100% 100%
=====================================
Files 8 8
Lines 173 174 +1
=====================================
+ Hits 173 174 +1
Continue to review full report at Codecov.
|
96332d3 to
c15817f
Compare
|
Ok updated to only get namespace versions for loaded namespaces. |
|
Are the NAs printed? How does the printed output look? |
|
I'll update the mocked test, don't worry about that. |
|
Hmm |
|
Yeah, I am afraid we need to change the print method. |
|
Somewhere around here: Line 132 in 8de1163 If it is not loaded, just use the on-disk version. |
c15817f to
3806e7c
Compare
|
Ok turns out if you use |
|
Great! Thanks! |
This fixes devtools failures when using sessioninfo
https://travis-ci.org/hadley/devtools/jobs/260288634#L823-L827