2016-09-14 3 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" 

그래서 변화가 커밋되지 않은 경우에도 당신이에 작업하던 지점이 사용됩니다.

관련 문제