Setup data and readme

  • /data for data (in my case, symlinks to org files)
  • README.rmd
mkdir data
touch analysis.Rmd

Setup git

  • initialize
  • create remote repo
  • setup gitignore
  • set upstream remote
  • commit and push
echo 'data/*' >> .gitignore
# git remote add origin git@github.com:jo-tham/org_text_miner.git
# git push -u origin master

Update Org files

  • putting them in subdirectories so it’s easier to create analysis per file, as the sourcing of single files into corpus is difficult with the R tm package
  • also put all in the root data directory for the combined analysis, since recursive argument dir dirSource is failing me
  • symlink to all org files
    • in the future could do all org files on machine by using a find command
ln -s ~/projects/9999-99-99_master/*.org ~/projects/9999-99-99_master_text_miner/data
ls -a ~/projects/9999-99-99_master_text_miner/data
cd ~/projects/9999-99-99_master
for i in *.org; do
projDir="/home/$USER/projects/9999-99-99_master_text_miner/data/$i"
projDirXext="${projDir%.org}"
mkdir -p -- "$projDirXext" && cp "$i" "$projDirXext/$i"
done

References/acknowledgements