R Session Aborted Fatal error

Can you install packages through R, but not in RStudio? (see FAQ below for disambiguation)