Displaying 1 result from an estimated 1 matches for "rpm_postinstall".
2004 May 22
1
RPM post-install scripts to update R
...age indices
%{_bindir}/R CMD perl %{_libdir}/R/share/perl/build-help.pl --htmllists
%__cat %{_libdir}/R/library/*/CONTENTS >
%{_libdir}/R/doc/html/search/index.txt
One way to do what you want would be to add something like the following
at the beginning:
%post
cat > /tmp/RPM_postinstall.R << EOF
update.packages(ask=F)
install.packages(c("Design","Hmisc","lmtest","car","rgl","effects"))
EOF
%{_bindir}/R BATCH /tmp/RPM_postinstall.R
echo "Please check /tmp/RPM_postinstall.Rout for the update r...