title: r programming - error in loadnamespace - package or namespace load failed
body: <p>This might be a very basic question but I am not getting anything about this. I searched many approaches after googling and none of them worked for me.</p>
  
  <p>The issue is that whenever I tried to load any default package like swirl or download any package and then source that to R, I am getting the error below.</p>
  
  <pre><code>  Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) : 
    there is no package called ‘stringi’
   Show Traceback
  
   Rerun with Debug
   Error: package or namespace load failed for ‘stringr’
  </code></pre>
  
  <p>Could someone please help me on this?</p>