pharmaverse / blog

Blogging on the latest, greatest and most spectacular stuff happening around the pharmaverse
https://pharmaverse.github.io/blog/
Apache License 2.0
21 stars 8 forks source link

General Issue: install all dependent packages #108

Closed bms63 closed 2 months ago

bms63 commented 7 months ago

Background Information

Need an elegant way to quickly install all the latest packages: jsonlite tidyverse spelling janitor diffdf admiral patchwork here reactable pharmaversesdtm metacore metatools

bms63 commented 6 months ago

Currently using this - be nice if we could use .Rprofile to auto-install all these.

install.packages(c("jsonlite", "tidyverse", "spelling", "janitor", "diffdf", "admiral", "patchwork", "here", "reactable", "pharmaversesdtm", "metacore", "metatools", "xportr", "pharmaverseadam"))

donyunardi commented 6 months ago

Personally, there should be a way to proceed without installing these packages on a local machine when preparing a blog post for contributor.

I didn't want to install all of these dependencies so I did quarto render <page/folder> when preparing teal blog post. But when you raised the image issue on the index, I had to resort to a workaround (i.e., removing all the R chunks) so that I could build the index page locally.

An idea, we could provide a Docker image with the dependencies installed for local testing.

bms63 commented 6 months ago

ohh the quarto render ... should go on the readme. I did not realize you could do that.

im interested in the docker image, but some folks might be intimated by that solution. maybe good intro for them..??

We have only been around roughly six months - adding 1-2 packages a month...so it could get serious!!

donyunardi commented 6 months ago

im interested in the docker image, but some folks might be intimated by that solution. maybe good intro for them..??

If contributor not familiar with the docker solution, they can always opt to install the dependencies locally. However, for those who's familiar with docker, this will speed up their movement.

The downside is we need to maintain it.

I can prep the docker image and PoC this if you're interested to go forward with docker solution.

bms63 commented 6 months ago

that sounds awesome @donyunardi ! fyi @pharmaverse/commswg

donyunardi commented 6 months ago

I think the discussion around docker solution is something different from what this issue originally trying to address. Therefore, I will be creating a new issue for our docker experiment.