eugejoh / sendtg

Send Telegram Notifications with R!
0 stars 0 forks source link

Bug Report: fail to install with an encoding problem #1

Closed JiaxiangBU closed 5 years ago

JiaxiangBU commented 5 years ago

Here is the error message.

``` > devtools::install_github("eugejoh/sendtg") Downloading GitHub repo eugejoh/sendtg@master These packages have more recent versions available. Which would you like to update? 1: assertthat (0.2.0 -> 0.2.1 ) [CRAN] 2: backports (1.1.3 -> 1.1.4 ) [CRAN] 3: clipr (0.4.1 -> 0.6.0 ) [CRAN] 4: curl (3.2 -> 3.3 ) [CRAN] 5: fs (1.2.6 -> 1.2.7 ) [CRAN] 6: git2r (0.23.0 -> 0.25.2) [CRAN] 7: glue (1.3.0 -> 1.3.1 ) [CRAN] 8: openssl (1.1 -> 1.3 ) [CRAN] 9: purrr (0.2.5 -> 0.3.2 ) [CRAN] 10: R6 (2.3.0 -> 2.4.0 ) [CRAN] 11: Rcpp (1.0.0 -> 1.0.1 ) [CRAN] 12: rlang (0.3.3 -> 0.3.4 ) [CRAN] 13: CRAN packages only 14: All 15: None Enter one or more numbers separated by spaces, or an empty line to cancel 1: 15 √ checking for file 'C:\Users\lijiaxiang\AppData\Local\Temp\Rtmpus0MsS\remotes36703b8b382d\eugejoh-sendtg-81e8515/DESCRIPTION' ... - preparing 'sendtg': √ checking DESCRIPTION meta-information ... - checking for LF line-endings in source and make files and shell scripts - checking for empty or unneeded directories - building 'sendtg_0.1.0.tar.gz' -- Attaching packages -------------------------------------------------------------------------------- tidyverse 1.2.1 -- √ ggplot2 3.1.0 √ purrr 0.2.5 √ tibble 2.1.1 √ dplyr 0.8.0.1 √ tidyr 0.8.2 √ stringr 1.3.1 √ readr 1.3.1 √ forcats 0.3.0 载入程辑包:'glue' The following object is masked from 'package:dplyr': collapse here() starts at D:/work/imp_rmd 载入程辑包:'kableExtra' The following object is masked from 'package:dplyr': group_rows Warning messages: 1: 程辑包'tibble'是用R版本3.5.3 来建造的 2: 程辑包'dplyr'是用R版本3.5.3 来建造的 3: 程辑包'rio'是用R版本3.5.3 来建造的 4: 程辑包'kableExtra'是用R版本3.5.3 来建造的 * installing *source* package 'sendtg' ... ** R ** byte-compile and prepare package for lazy loading ** help *** installing help indices converting help for package 'sendtg' finding HTML links ... 好了 sendtg_ani html sendtg_check html sendtg_file html sendtg_img html sendtg_msg html sendtg_setup html ** building package indices ** testing if installed package can be loaded *** arch - i386 Error in file(filename, "r", encoding = encoding) : 无法打开链结 Calls: source -> file 此外: Warning message: In file(filename, "r", encoding = encoding) : 无法打开文件'C:/Users/lijiaxiang/AppData/Local/Temp/RtmpA3zTon/R.INSTALL7f285a6e250c/sendtg/R/load.R': No such file or directory 停止执行 *** arch - x64 Error in file(filename, "r", encoding = encoding) : 无法打开链结 Calls: source -> file 此外: Warning message: In file(filename, "r", encoding = encoding) : 无法打开文件'C:/Users/lijiaxiang/AppData/Local/Temp/RtmpA3zTon/R.INSTALL7f285a6e250c/sendtg/R/load.R': No such file or directory 停止执行 ERROR: loading failed for 'i386', 'x64' * removing 'C:/Program Files/R/R-3.5.2/library/sendtg' In R CMD INSTALL ```

Here is my session information.

"SI"
#> [1] "SI"

Created on 2019-04-16 by the reprex package (v0.2.1)

Session info ``` r devtools::session_info() #> - Session info ---------------------------------------------------------- #> setting value #> version R version 3.5.2 (2018-12-20) #> os Windows 7 x64 SP 1 #> system x86_64, mingw32 #> ui RTerm #> language (EN) #> collate Chinese (Simplified)_People's Republic of China.936 #> ctype Chinese (Simplified)_People's Republic of China.936 #> tz Asia/Taipei #> date 2019-04-16 #> #> - Packages -------------------------------------------------------------- #> package * version date lib source #> assertthat 0.2.0 2017-04-11 [1] CRAN (R 3.5.2) #> backports 1.1.3 2018-12-14 [1] CRAN (R 3.5.2) #> callr 3.1.1 2018-12-21 [1] CRAN (R 3.5.2) #> cli 1.0.1 2018-09-25 [1] CRAN (R 3.5.2) #> crayon 1.3.4 2017-09-16 [1] CRAN (R 3.5.2) #> desc 1.2.0 2018-05-01 [1] CRAN (R 3.5.2) #> devtools 2.0.1 2018-10-26 [1] CRAN (R 3.5.2) #> digest 0.6.18 2018-10-10 [1] CRAN (R 3.5.2) #> evaluate 0.12 2018-10-09 [1] CRAN (R 3.5.2) #> fs 1.2.6 2018-08-23 [1] CRAN (R 3.5.2) #> glue 1.3.0 2018-07-17 [1] CRAN (R 3.5.2) #> highr 0.7 2018-06-09 [1] CRAN (R 3.5.2) #> htmltools 0.3.6 2017-04-28 [1] CRAN (R 3.5.2) #> knitr 1.21 2018-12-10 [1] CRAN (R 3.5.2) #> magrittr 1.5 2014-11-22 [1] CRAN (R 3.5.2) #> memoise 1.1.0 2017-04-21 [1] CRAN (R 3.5.2) #> pkgbuild 1.0.2 2018-10-16 [1] CRAN (R 3.5.2) #> pkgload 1.0.2 2018-10-29 [1] CRAN (R 3.5.2) #> prettyunits 1.0.2 2015-07-13 [1] CRAN (R 3.5.2) #> processx 3.2.1 2018-12-05 [1] CRAN (R 3.5.2) #> ps 1.3.0 2018-12-21 [1] CRAN (R 3.5.2) #> R6 2.3.0 2018-10-04 [1] CRAN (R 3.5.2) #> Rcpp 1.0.0 2018-11-07 [1] CRAN (R 3.5.2) #> remotes 2.0.2 2018-10-30 [1] CRAN (R 3.5.2) #> rlang 0.3.3 2019-03-29 [1] CRAN (R 3.5.3) #> rmarkdown 1.11 2018-12-08 [1] CRAN (R 3.5.2) #> rprojroot 1.3-2 2018-01-03 [1] CRAN (R 3.5.2) #> sessioninfo 1.1.1 2018-11-05 [1] CRAN (R 3.5.2) #> stringi 1.2.4 2018-07-20 [1] CRAN (R 3.5.2) #> stringr 1.3.1 2018-05-10 [1] CRAN (R 3.5.2) #> usethis 1.5.0 2019-04-07 [1] CRAN (R 3.5.3) #> withr 2.1.2 2018-03-15 [1] CRAN (R 3.5.2) #> xfun 0.4 2018-10-23 [1] CRAN (R 3.5.2) #> yaml 2.2.0 2018-07-25 [1] CRAN (R 3.5.2) #> #> [1] C:/Program Files/R/R-3.5.2/library ```
eugejoh commented 5 years ago

Hi sorry for the late response, I'm not completely sure about the encoding issue. I had made some updates to the package. Let me know if you still have this issue by running devtools::install_github("eugejoh/sendtg") again

JiaxiangBU commented 5 years ago

@eugejoh I try again and it works for me, thanks for your reply, I l close it.

eugejoh commented 5 years ago

@JiaxiangBU great to hear. I'll see if that encoding issue pops up again