로그인 바로가기 하위 메뉴 바로가기 본문 바로가기

R언어를 활용한 기초컴퓨터프로그래밍

박성호 부산대학교
http://www.edwith.org/pnu-basicr/forum/6113
좋아요 185 수강생 5898

setwd("~/R_test/ch_09")
lyrics <- readLines("ch9_2_jingle_bells.txt")

이렇게 입력했을때 실행하면

print했을때는 정상적으로 실행되긴하는데 에러메시지가 함께 뜹니다

Warning message:
In readLines("ch9_2_jingle_bells.txt") :
incomplete final line found on 'ch9_2_jingle_bells.txt'

왜 이런걸까요?