Hey everyone a good website for determining package dependencies is packagemanager.posit.co/client/#/. You can set your system to whatever linux distribution, choose the R environment, and then lookup the packages used in scripts for the container. The packages will then tell you the necessary libraries you would need to import. Hope it helps!
@mkklindhardt2 жыл бұрын
Thanks for sharing your experience on Docker and R! Looking forward to more
@forestquality54002 жыл бұрын
Great help Andrew. Much appreciated
@thesixmax3 жыл бұрын
Interesting! What I found less intuitive about Docker (only been using it for the last 6 months really) is the integration with 'renv' for library and package version control. In particular renv::restore(), which keeps reinstalling everything on any change to the renv lock file. And I agree with you that straightforward resources are scarce. Being an (Arch) Linux user, I found the lib part of the Docker script to be more straightforward; often times, I need to install certain dependencies for a R package to even work, so I already know which packages will cause issues prior to deploying my scripts in Docker. In particular packages creating graphical outputs and some ML packages can be a bit of hassle. Looking forward to the rest of Season 2!
@paraggemini3 жыл бұрын
Thank you for this. Can you please do a video on hosting shiny apps on Azure using docker? And probably connecting a DB and user authentication too. Thanks!
@AndrewCouch3 жыл бұрын
I actually am starting to use Azure at my work but I'm not sure if it is feasible to do it for my series since it would require viewers to have access to Azure resources. I think I can work on a video for authentication and DB stuff could also be in a separate video. Thanks for the video suggestions!
@paraggemini3 жыл бұрын
@@AndrewCouch I will be waiting for that. AWS is free for a year. Maybe hosting app on AWS and can be accessible to public with user authentication (Auth0, maybe?). Also, connecting DB would be great. Probably, Mongo. I recently learnt that problem with SQL DB is SQL injection attack. lol
@carlbroker3 жыл бұрын
Thanks for putting this together - by chance do you have the file `Final_Model.rds`? I appears you did not include it in your repo.
@AndrewCouch3 жыл бұрын
Final_Model.rds is just all of the model files combined so you would need load them individually. github.com/andrew-couch/UFC-Sports-Betting-Model/tree/master/Models
@joanne76443 жыл бұрын
Thanks Andrew for the explanation and informative video and resources! Great guide. Will you by any chance be possible to cover tutorial to set up a sample shinyproxy connecting to external database or authentication framework (eg. Keycloak)?
@jberilo5 күн бұрын
Hello Andrew. Good morning. Excellent lesson on Shiny with Docker. I tried to replicate it on my computer but I couldn't load the app. I took a look at Docker and saw that there was an error. It says it couldn't find the Tidyverse package but I saw in the dockerfile that it is in the installation list. Can you help me? Thanks.
@AndrewCouch5 күн бұрын
There are a few different ways to install tidyverse in a dockerfile. You can install it with an R command like this: RUN R -e "install.packages(pkgs=c('tidyverse', repos='cran.rstudio.com/')" Use a docker image that already contains Tidyverse: FROM rocker/tidyverse Or use install2.r RUN install2.r --error --skipinstalled --ncpus -1 \ tidyverse \ && rm -rf /tmp/downloaded_packages From my understanding install2.r is the preferred choice for installing packages or using an image that already contains the package. install.packages errors are not captured when building images so you can add more specifications using install2.r. You also may need to install more system libraries which is another pain. The best way to figure out what are the necessary libraries is using packagemanager.posit.co/client/#/repos/cran/packages/overview?search=tidyverse. For example you would also need to run for tidyverse apt-get install -y libicu-dev apt-get install -y make apt-get install -y libcurl4-openssl-dev apt-get install -y libssl-dev apt-get install -y libx11-dev apt-get install -y zlib1g-dev apt-get install -y libfontconfig1-dev apt-get install -y libfreetype6-dev apt-get install -y libfribidi-dev apt-get install -y libharfbuzz-dev apt-get install -y libjpeg-dev apt-get install -y libpng-dev apt-get install -y libtiff-dev apt-get install -y pandoc apt-get install -y libxml2-dev
@jberilo5 күн бұрын
@@AndrewCouch Thanks Andrew. I will follow your recommendations. Att.
@princesslizzy56752 жыл бұрын
Thank you very much
@安田源2 жыл бұрын
hi ,if i want to share my deployed app in internel network ,what should i do ,cause localhost:3838 cannot open by other ,thanks
@TURALOWEN Жыл бұрын
Could you do a video where you deploy this Shiny app to AWS?
@vinayak894 Жыл бұрын
when I run the same scripts on mac it says that "no matching manifest for linux/arm64/v8 in the manifest list entries"
@catherinedoudou6288 Жыл бұрын
did you solve it?
@vinayak894 Жыл бұрын
@@catherinedoudou6288 didn’t try this.
@My-NaMeS_jEfF Жыл бұрын
Of course, doesn’t take a genius, but they like to make you think it does. Nice video thank you