View Code? Open in Web Editor
NEW
:exclamation: This is a read-only mirror of the CRAN R package repository. units — Measurement Units for R Vectors. Homepage: https://github.com/r-quantities/units Report bugs for this package: https://github.com/r-quantities/units/issues
R 82.11%
M4 1.80%
C++ 11.70%
TeX 4.40%
units's People
Contributors
Watchers
units's Issues
englianhu @ Scibrokes :~$ sudo su - - c " R -e \" install.packages(c('units', 'sf'), repos='https://cran.rstudio.com/')\" "
R version 4.2.1 (2022 - 06 - 23 ) -- " Funny-Looking Kid"
Copyright (C ) 2022 The R Foundation for Statistical Computing
Platform : x86_64 - pc - linux - gnu (64 - bit )
R 是自由软件,不带任何担保。
在某些条件下你可以将其自由散布。
用' license()' 或' licence()' 来看散布的详细条件。
R 是个合作计划,有许多人为之做出了贡献.
用' contributors()' 来看合作者的详细情况
用' citation()' 会告诉你如何在出版物中正确地引用R 或R 程序包。
用' demo()' 来看一些示范程序,用' help()' 来阅读在线帮助文件,或
用' help.start()' 通过HTML 浏览器来看帮助文件。
用' q()' 退出R.
> install.packages(c(' units' , ' sf' ), repos = ' https://cran.rstudio.com/' )
试开URL ’https : // cran.rstudio.com / src / contrib / units_0.8 - 0. tar.gz '
Content type ' application / x - gzip ' length 866695 bytes (846 KB)
==================================================
downloaded 846 KB
试开URL’https://cran.rstudio.com/src/contrib/sf_1.0-8.tar.gz'
Content type ' application/x-gzip' length 3472914 bytes (3.3 MB )
==================================================
downloaded 3.3 MB
* installing * source * package ‘units ’ ...
** 成功将‘units ’程序包解包并MD5 和检查
** using staged installation
configure : units : 0.8 - 0
checking whether the C ++ compiler works... yes
checking for C ++ compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C ++ compiler... yes
checking whether g ++ - std = gnu ++ 14 accepts - g... yes
checking how to run the C ++ preprocessor... g ++ - std = gnu ++ 14 - E
checking for grep that handles long lines and - e... / usr / bin / grep
checking for egrep... / usr / bin / grep - E
checking for ANSI C header files... yes
checking for sys / types.h... yes
checking for sys / stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for stdbool.h that conforms to C99... no
checking for _Bool ... no
checking for error_at_line... yes
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts - g... yes
checking for gcc option to accept ISO C89... none needed
checking for XML_ParserCreate in - lexpat... yes
checking udunits2.h usability... no
checking udunits2.h presence... no
checking for udunits2.h... no
checking udunits2 / udunits2.h usability... no
checking udunits2 / udunits2.h presence... no
checking for udunits2 / udunits2.h... no
checking for ut_read_xml in - ludunits2... no
configure : error : in `/ tmp / RtmpyZFyNZ / R.INSTALL13c675cd78d / units ' :
configure: error:
--------------------------------------------------------------------------------
Configuration failed because libudunits2.so was not found. Try installing:
* deb: libudunits2-dev (Debian, Ubuntu, ...)
* rpm: udunits2-devel (Fedora, EPEL, ...)
* brew: udunits (OSX)
If udunits2 is already installed in a non-standard location, use:
--configure-args=' -- with - udunits2 - lib = / usr / local / lib '
if the library was not found, and/or:
--configure-args=' -- with - udunits2 - include = / usr / include / udunits2 '
if the header was not found, replacing paths with appropriate values.
You can alternatively set UDUNITS2_INCLUDE and UDUNITS2_LIBS manually.
--------------------------------------------------------------------------------
See `config.log' for more details
ERROR : configuration failed for package ‘units ’
* removing ‘/ usr / bin / R / library / units ’
ERROR : dependency ‘units ’ is not available for package ‘sf ’
* removing ‘/ usr / bin / R / library / sf ’
下载的程序包在
‘/ tmp / Rtmpvx95Ad / downloaded_packages ’里
更新' .Library' 里的HTML 程序包列表
Making ' packages.html' ... 做完了。
Warning messages :
1 : In install.packages(c(" units" , " sf" ), repos = " https://cran.rstudio.com/" ) :
安装程序包‘units ’时退出狀態的值不是0
2 : In install.packages(c(" units" , " sf" ), repos = " https://cran.rstudio.com/" ) :
安装程序包‘sf ’时退出狀態的值不是0