पर स्थापित करने में विफल रहता है मैं उबंटू पर आर 3.0.2 में ggplot2 स्थापित करने में असमर्थ हूं।ggplot2 आर 3.0.2
जब मैं
install.packages('ggplot2',dependencies = TRUE)
चलाने मैं निम्नलिखित त्रुटि मिलती है।
> install.packages('ggplot2',dependencies = TRUE)
Installing package into ‘/home/gowthamn/R/x86_64-pc-linux-gnu-library/3.0’
(as ‘lib’ is unspecified)
Warning in install.packages :
dependencies ‘plyr’, ‘testthat’ are not available
also installing the dependencies ‘reshape2’, ‘scales’, ‘Hmisc’
trying URL 'http://cran.rstudio.com/src/contrib/reshape2_1.4.1.tar.gz'
Content type 'application/x-gzip' length 34693 bytes (33 Kb)
opened URL
==================================================
downloaded 33 Kb
trying URL 'http://cran.rstudio.com/src/contrib/scales_0.2.4.tar.gz'
Content type 'application/x-gzip' length 40093 bytes (39 Kb)
opened URL
==================================================
downloaded 39 Kb
trying URL 'http://cran.rstudio.com/src/contrib/Hmisc_3.16-0.tar.gz'
Content type 'application/x-gzip' length 629536 bytes (614 Kb)
opened URL
==================================================
downloaded 614 Kb
trying URL 'http://cran.rstudio.com/src/contrib/ggplot2_1.0.1.tar.gz'
Content type 'application/x-gzip' length 2351203 bytes (2.2 Mb)
opened URL
==================================================
downloaded 2.2 Mb
ERROR: dependency ‘plyr’ is not available for package ‘reshape2’
* removing ‘/home/gowthamn/R/x86_64-pc-linux-gnu-library/3.0/reshape2’
Warning in install.packages :
installation of package ‘reshape2’ had non-zero exit status
ERROR: dependency ‘plyr’ is not available for package ‘scales’
* removing ‘/home/gowthamn/R/x86_64-pc-linux-gnu-library/3.0/scales’
Warning in install.packages :
installation of package ‘scales’ had non-zero exit status
ERROR: dependencies ‘plyr’, ‘reshape2’, ‘scales’ are not available for package ‘ggplot2’
* removing ‘/home/gowthamn/R/x86_64-pc-linux-gnu-library/3.0/ggplot2’
Warning in install.packages :
installation of package ‘ggplot2’ had non-zero exit status
ERROR: dependencies ‘ggplot2’, ‘scales’ are not available for package ‘Hmisc’
* removing ‘/home/gowthamn/R/x86_64-pc-linux-gnu-library/3.0/Hmisc’
Warning in install.packages :
installation of package ‘Hmisc’ had non-zero exit status
मैं भी
install.packages(c('reshape2','scales'))
की कोशिश की त्रुटि मिलती है कि plyr
उपलब्ध नहीं है।
मैंने उबंटू को भी अपग्रेड किया और आर के नवीनतम संस्करण को भी पुनर्स्थापित किया और update.packages(checkBuilt=TRUE)
का उपयोग करके पैकेज अपडेट किया। लेकिन, कुछ भी काम नहीं किया। मैं क्या कर सकता हूँ?
आप पैकेज है 'plyr' स्थापित?साथ ही, यदि यह आर के संस्करण में टाइपो नहीं है, तो आपको आर को अपग्रेड करना चाहिए (वर्तमान संस्करण 3.2.0 है)। –
3.0.2 काफी पुराना है। क्या तुम सच में इस संस्करण का उपयोग करना चाहते हैं, तो आप सिर्फ हाथों से निर्भरता संकलन करना होगा (प्रत्येक पैकेज संग्रह करने के लिए जाने के लिए और संस्करण संगत डाउनलोड 3.0.2 के साथ)। –
धन्यवाद। इसने काम कर दिया। किसी कारण से, sudo apt-get install r-base 3.0.2 इंस्टॉल कर रहा था। मैंने यहां उल्लिखित स्रोत को अपडेट किया - http://askubuntu.com/questions/218708/installing-latest-version-of-r-base और यह काम किया। – gnjago