Corrected library names: 'MxM' changed to 'MXM' and 'daggity' changed to 'dagitty' to match the proper CRAN package names.
Fixed the use of the -e flag in Rscript: Ensures inline execution of the R command without opening an interactive session.
Corrected quotation marks in the install.packages() function: Single quotes are required around package names in R commands, replacing incorrect double quotes inside the function.
These changes ensure proper package installation and consistency with R best practices.
These changes ensure proper package installation and consistency with R best practices.