Error when using devtools::install_github with shiny for private repository

I am using a private package in Github in my Shiny app, and previously,

try(devtools::install_github('user/repo))

was sufficient in installing the package after changing the Github Authentication on shinyapps.io to include Private Repository access.

However, for some reason, the following error appears. Any suggestions on why this is? This previously worked without the use of a token...

Thanks!

Preparing to deploy application...DONE
Uploading bundle for application: 1148375...Warning in FUN(X[[i]], ...) :
  Unable to find repository URL for package 
DONE
Deploying bundle: 2385940 for application: 1148375 ...
Waiting for task: 644640667
  building: Parsing manifest
  building: Building image: 2534804
  building: Installing system dependencies
  building: Fetching packages
  building: Building package: elegantplot
################################ Begin Task Log ################################ 
[2019-09-04T21:49:25.536715632+0000] Execute script: packages/build/sys.sh
+ set -e
+ apt-get update -qq
+ apt-get install -y libapparmor-dev
Reading package lists...
Building dependency tree...
Reading state information...
The following NEW packages will be installed:
  libapparmor-dev
0 upgraded, 1 newly installed, 0 to remove and 43 not upgraded.
Need to get 67.8 kB of archives.
After this operation, 229 kB of additional disk space will be used.
Get:1 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libapparmor-dev amd64 2.10.95-0ubuntu2.11 [67.8 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 67.8 kB in 0s (0 B/s)
Selecting previously unselected package libapparmor-dev:amd64.
(Reading database ... 119718 files and directories currently installed.)
Preparing to unpack .../libapparmor-dev_2.10.95-0ubuntu2.11_amd64.deb ...
Unpacking libapparmor-dev:amd64 (2.10.95-0ubuntu2.11) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up libapparmor-dev:amd64 (2.10.95-0ubuntu2.11) ...
################################# End Task Log ################################# 
Error: Unhandled Exception: Child Task 644640669 failed: Error building image: Error fetching elegantplot (0.1.2) source. <CRANPackageSource repo='http://cran.rstudio.org'> unable to satisfy package: elegantplot (0.1.2)
In addition: Warning message:
In FUN(X[[i]], ...) :
  Package 'elegantplot 0.1.2' was installed from sources; Packrat will assume this package is available from a CRAN-like repository during future restores
Execution halted

I'd suggest looking at packageDescription("elegantplot") as this warning:

Package 'elegantplot 0.1.2' was installed from sources; Packrat will assume this package is available from a CRAN-like repository during future restores
Execution halted

suggests that packrat is not finding the correct metadata to re-install the package from GitHub.