Rstudio practice in "R" CentOS7 and problems encountered

Source: Internet
Author: User
Origin

R installation is complete, can't restrain, must write something to play.
Then by the way during the use of the process, see what pits can be trampled, by the way record. Real Exercise

The first step, of course, is to enter the Rstudio, login process problems can be seen in a blog post.

The second step is to import the data. But when importing data, an error. Of course, just install sure there are all kinds of packages and environment not, so need to download. But here's an error, look at the interface.

Unable to access index for repository http://xxxx

It is clear that either the configured HTTP address expires or is not configured.
So we look at this file Rprofile.site (according to my configuration should be here/usr/local/r-3.3.2/src/gnuwin32/fixed/etc/rprofile.site), if not found, please find.

Vim/usr/local/r-3.3.2/src/gnuwin32/fixed/etc/rprofile.site

Modify the contents of the r["CRAN"] <-http. Of course this link you want to go to the official Rstudio provided by the mirror. The China image given below I chose the second image of Tsinghua University. That is http://mirror.bjtu.edu.cn/cran/. Write this address to the site file.

The third part, restart Rstudio.

Rstudio-server start 
#这里还有另外两个命令可以使用:
rstudio-server restart/stop

This way, when we click Import csv again, the download event will be downloaded automatically.

Installing packages into '/home/lekko/r/x86_64-pc-linux-gnu-library/3.3 ' (as ' lib ' is unspecified) also installing the De Pendencies ' assertthat ', ' lazyeval ', ' curl ', ' tibble ', ' HMS ', ' R6 ', ' BH ' trying URL ' Http://cran.rstudio.com/src/contrib
/assertthat_0.1.tar.gz ' Content type ' unknown ' length 10187 bytes ================================================== Downloaded 10187 bytes Trying URL ' http://cran.rstudio.com/src/contrib/lazyeval_0.2.0.tar.gz ' Content type ' unknown ' Length 317272 bytes (309 KB) ================================================== downloaded 309 KB trying URL ' Http://cran . rstudio.com/src/contrib/curl_2.3.tar.gz ' Content type ' unknown ' length 400460 bytes (391 KB) =========================
========================= downloaded 391 KB trying URL ' http://cran.rstudio.com/src/contrib/tibble_1.2.tar.gz ' Content type ' unknown ' length 54517 bytes (+ KB) ================================================== downloaded-kb try ing URL ' http://cran.rstudio.com/src/contrib/hms_0.3.tar.gz ' Content type ' unknown ' length 7271 bytes ================================================== downloaded 7271 bytes Trying URL ' http://cran.rstudio.com/src/contrib/R6_2.2.0.tar.gz ' Content type ' unknown ' length 203498 bytes (1 98 KB) ================================================== downloaded 198 kb trying URL ' http://cran.rstudio.com/src/ contrib/bh_1.62.0-1.tar.gz ' Content type ' unknown ' length 10181096 bytes (9.7 MB) ===========

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.