Unable to deploy shiny app to connect when using R pkg - "testthat" through R Version - 3.4.3, works fine with R version - 3.5.1

Hello,

Unable to deploy the shiny app to R Studio Connect when using the R Pkg - "testthat".
However, this issue is only on the R Version - 3.4.3, deployment works fine through R version - 3.5.1
Deployment always fails at "testthat". logs on Connect server:

Installing testthat (2.2.1) ...
curl: (56) Recv failure: Connection reset by peer
curl: (56) Recv failure: Connection reset by peer
curl: (56) Recv failure: Connection reset by peer
curl: (56) Recv failure: Connection reset by peer
curl: (56) Recv failure: Connection reset by pr
FAILED
Error in getSourceForPkgRecord(pkgRecord, srcDir(project), availablePackagesSource(repos = repos), : Failed to retrieve package sources for testthat 2.2.1 from CRAN (internet connectivity issue?)

[2.3.1 is current]

R Pkg "curl" version - 4.0
R Pkg "testthat" version - 2.2.1
R Studio Server Pro Version - 1.2.1335-1
R Studio Connect Version - 1.7.2.2-14

Any help is widely appreciated,

Thanks.

1 Like

Hi @PRG,

This looks like it might be a networking issue where the port is being blocked by a firewall. Is your RStudio Connect server deployed behind a proxy or in a container?

Can you share the full log for deployment for both the version that fails and one that succeeds?

Since you're using RStudio Connect, you also have access to our support if you don't want to share those logs in public. You can generate a ticket by emailing support@rstudio.com and we can continue to work on this issue there.

Thank you,
Alex

1 Like