Revert to previous x_init settings in optimParams (keeping the initial one)
[morpheus.git] / to-cran.sh
... / ...
CommitLineData
1#!/bin/bash
2
3# Synchronize package folder
4rsync -a --delete pkg/ pkg-cran/
5cd pkg-cran
6
7# Replace all used greek letters by beta, mu, ...etc
8for file in `find -name *.R`; do
9 if [ -f $file ]; then
10 sed -i 's/μ/mu/g' $file
11 sed -i 's/β/beta/g' $file
12 sed -i 's/ρ/rho/g' $file
13 sed -i 's/λ/lambda/g' $file
14 sed -i 's/θ/theta/g' $file
15 sed -i 's/Σ/Sigma/g' $file
16 fi
17done
18
19if [ "$1" == "i" ]; then
20 # Install package
21 echo "rp()" | R --slave
22fi
23
24cd ..