trying to understand why the last line of a script won't produce any output

Hi,

Welcome to the RStudio community!

It seems strange that glimpse would work, but summary not. Could you give us a reprex of this issue? A reprex consists of the minimal code and data needed to recreate the issue/question you're having. (we have the code, but no data) You can find instructions how to build and share one here:

Thanks,
PJ