These are chat archives for klmr/modules

17th
Apr 2015
Ian Fiske
@ianfiske
Apr 17 2015 02:07
Has anyone had any luck using the modules package on shinyapps.io? I can use it fine locally, but deploy to shinyapps fails when trying to install modules with the error installing source package ‘modules’ ...
R inst
preparing package for lazy loading help
**
installing help indices
building package indices installing vignettes
** testing if installed package can be loaded
Error in file(filename, "r", encoding = encoding) :
cannot open the connection
Calls: source -> file
In addition: Warning message:
In file(filename, "r", encoding = encoding) :
cannot open file '//.Rprofile': No such file or directory
Execution halted
ERROR: loading failed
  • removing ‘/usr/local/lib/R/site-library/modules’
    ############################# End Log
    Error: Unhandled Exception: Child Task 27247330 failed: Error building image: Error building modules (0.7.1). Build exited with non-zero status: 1
    Execution halted
Konrad Rudolph
@klmr
Apr 17 2015 14:44
Oh. I can reproduce this.
I’m not sure what causes this but I have a suspicion that the .Rprofile file in the project root confuses the installer.
That’s arguably a bug in the shinyapps installer, since there’s nothing that forbids non-project files in a package directory (even though R CMD CHECK doesn’t like it).
I’ll file a bug report with shinyapps and see whether we can figure this out. Thanks for the report!