Shouldn't the bottom two return TRUE? I definitely don't have a font called Notfont :slightly_smiling_face:
If i understand the intent of that line correctly, it should check if any of those 3 font names are missing, and then trigger the startup message? Seeing as I've included a font that doesn't exist it should trigger TRUE to show the message? I think it's only matching partial portions of the string, it's probably just a regex wierdness.
Also, do we potentially need to test for Roboto Thin as well/rather than Roboto? In the event that the user has partially installed the return from lockeutils::import_roboto(), but only installed Roboto, but not Roboto Thin, this check will pass, but the call to the thin font in theme_ld() might fail as it is looking for something that isn't there?
Hey, sorry to be a bad news bear, but I was just doing some testing and I think I spotted something:
re: https://github.com/lockedata/lockeutils/blob/274c6be7aba767c48886f11fc649ff48f8c96490/R/zzz.R#L11
Shouldn't the bottom two return
TRUE
? I definitely don't have a font calledNotfont
:slightly_smiling_face:If i understand the intent of that line correctly, it should check if any of those 3 font names are missing, and then trigger the startup message? Seeing as I've included a font that doesn't exist it should trigger TRUE to show the message? I think it's only matching partial portions of the string, it's probably just a regex wierdness.
Also, do we potentially need to test for
Roboto Thin
as well/rather thanRoboto
? In the event that the user has partially installed the return fromlockeutils::import_roboto()
, but only installedRoboto
, but notRoboto Thin
, this check will pass, but the call to the thin font intheme_ld()
might fail as it is looking for something that isn't there?https://github.com/lockedata/lockeutils/blob/274c6be7aba767c48886f11fc649ff48f8c96490/R/theme_ld.R#L25