2016-09-14 4 views

答えて

0

あなたはでそれをテストすることができます。

mkdir test 
cd test 
vim test.R 
    print("hi") # save with ESC, CTRL+x 
git add test.R 
git commit -m "Adding file" 
git branch newbranch # create new branch 
git checkout newbranch # switch to the new branch 
vim test.R # edit the file on the new branch 
    print("bye") # save with ESC, CTRL+x 
cd .. 
cat test/test.R 
print("bye") 
R CMD BATCH test.R # Run the program with an external application 
cat test.Rout # observe the output 
> print("bye") 
[1] "bye" 

だから変更がコミットされていない場合でも、あなたはに取り組んでいた ブランチが使用されます。

関連する問題