invalid multibyte string, element 1
options(“download.file.method” = “wininet”)
getOption(“download.file.method”)
[1] “wininet”
install_github(‘stjude/ChIPseqSpikeInFree’, host = “api.github.com”)
错误: Failed to install ‘unknown package’ from GitHub:
invalid multibyte string, element 1
Sys.setlocale(category = “LC_ALL”, locale = “us”)
[1] “LC_COLLATE=English_United States.1252;LC_CTYPE=English_United States.1252;LC_MONETARY=English_United States.1252;LC_NUMERIC=C;LC_TIME=English_United States.1252”
install_github(“stjude/ChIPseqSpikeInFree”)
Downloading GitHub repo stjude/ChIPseqSpikeInFree@master
Skipping 4 packages not available: GenomicAlignments, GenomicRanges, IRanges, Rsamtools
√ checking for file ‘C:\Users\admin\AppData\Local\Temp\RtmpUFQCaN\remotes18983f6815df\stjude-ChIPseqSpikeInFree-99089cd/DESCRIPTION’ (553ms)
- preparing ‘ChIPseqSpikeInFree’:
√ checking DESCRIPTION meta-information … - checking for LF line-endings in source and make files and shell scripts
- checking for empty or unneeded directories
- building ‘ChIPseqSpikeInFree_1.2.4.tar.gz’
Installing package into ‘C:/Users/admin/Documents/R/win-library/3.6’
(as ‘lib’ is unspecified)
- installing source package ‘ChIPseqSpikeInFree’ …
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
** help
https://bbs.csdn.net/topics/392172842?utm_medium=distribute.pc_relevant.none-task-discussion_topic-BlogCommendFromBaidu-7.control&dist_request_id=c75dfed7-e2a7-4eb2-8a6e-caf4ca9c1ed3&depth_1-utm_source=distribute.pc_relevant.none-task-discussion_topic-BlogCommendFromBaidu-7.control
初学者。。。
问题一:
C:\Users\(此处为中文名)\AppData\Local\Temp
解决方法:
修改环境变量(不同系统情况不一样,此处描述到此为止)
问题二:
解决上个中文问题后仍然报同样错误,有可能为内码冲突问题:
在RStudio执行:
Plain Text code
?
1
Sys.setlocale(category = “LC_ALL”, locale = “us”)
(参考:http://blog.sina.com.cn/s/blog_9311ab5f0102w9mk.html#post)