Error deploying Rshiny app with Rcpp code on

I am attempting to deploy an app on which uses Rcpp. When I run the app on my machine, it works fine. However, when I deploy it, a broken pipe error is raised. Screenshot of the same is provided below:

I am running R4.2.0 and Rtools 42 on my windows machine. Details of my system from sessionInfo() is provided below:
R version 4.2.0 (2022-04-22 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 22000)