Publishing to shinyapps.io results in "no library trees found in 'lib.loc'" error

My project won't run in Shinyapps.io. The following error is returned:

Error in value[3L] : no library trees found in 'lib.loc'
Calls: local ... tryCatch -> tryCatchList -> tryCatchOne ->
Execution halted