본문 바로가기
실용적인프로그래밍/R

[R error] the given url does not appear to be a valid cran repository

by 인포메틱스 2021. 5. 13.
반응형

R studio에서 package download하는 곳을 변경하는데  아래와 같이 에러가 발생한다면,

 

'the given url does not appear to be a valid cran repository'

 

해결할 수 있는 방법은 다음과 같습니다.

 

getOption("download.file.method")
getOption("download.file.extra")

 

위와같이 ternimal에 쳤을때, 둘 다 NULL이 나온 경우

 

options(
    download.file.method = "curl",
    download.file.extra = "-L -f"  # follow redirects; fail on error
)

 

위와 같이 쳐주면 됩니다.

728x90
반응형

댓글