briatte / ggnetwork

Geoms to plot networks with ggplot2
https://briatte.github.io/ggnetwork/
146 stars 28 forks source link

Can't install package #65

Closed pinguinjay closed 3 years ago

pinguinjay commented 3 years ago

I tried to install the ggnetwork package by two ways. However, both failed. May I ask how to solve the problem?

#first way
install.packages("ggnetwork")
將程式套件安載入 ‘C:/Users/user/Documents/R/win-library/4.1’
(因為 ‘lib’ 沒有被指定)

  有二進位版本的,但原始碼版本是後來的:
          binary source needs_compilation
ggnetwork  0.5.8  0.5.9             FALSE

安裝原始碼套件 ‘ggnetwork’

trying URL 'https://cran.rstudio.com/src/contrib/ggnetwork_0.5.9.tar.gz'
Content type 'application/x-gzip' length 2092646 bytes (2.0 MB)
downloaded 2.0 MB

* installing *source* package 'ggnetwork' ...
** package 'ggnetwork' successfully unpacked and MD5 sums checked
** using staged installation
parse(con, encoding = "UTF-8") 中的警告:
  argument encoding="UTF-8" is ignored in MBCS locales
Error in parse(con, encoding = "UTF-8") : 
  在剖析器的第 3 列中有無效的多位元組字元
ERROR: installing package DESCRIPTION failed for package 'ggnetwork'
* removing 'C:/Users/user/Documents/R/win-library/4.1/ggnetwork'
Warning in install.packages :
  installation of package ‘ggnetwork’ had non-zero exit status

The downloaded source packages are in
    ‘C:\Users\user\AppData\Local\Temp\Rtmpkhvytw\downloaded_packages’
#second way
devtools::install_github("briatte/ggnetwork")
Error: Failed to install 'unknown package' from GitHub:
  Line starting 'NeedsCompilati ...' is malformed!
briatte commented 3 years ago

Thanks, but this seems locale-related, rather than code-related. I don't see how I can fix it.