我试图安装的开发版本ggbiplot从Github.在安装过程中,我收到以下错误消息:
library(devtools)
install_github("ggbiplot", "vqv")
Installing github repo(s) ggbiplot/master from vqv
Installing ggbiplot.zip from https://github.com/vqv/ggbiplot/zipball
Installing ggbiplot
* checking for file 'C:\Users\Muhammad Yaseen\AppData\Local\Temp\Rtmpsx4n5u\vqv-ggbiplot-2623d7c/DESCRIPTION' ... OK
* preparing 'ggbiplot':
* checking DESCRIPTION meta-information ... OK
* checking for LF line-endings in source and make files
* checking for empty or unneeded directories
* looking to see if a 'data/datalist' file should be added
* building 'ggbiplot_0.5.tar.gz'
cygwin warning:
MS-DOS style path detected: C:/Users/MUHAMM~1/AppData/Local/Temp/Rtmpsx4n5u/ggbiplot_0.5.tar.gz
Preferred POSIX equivalent is: /cygdrive/c/Users/MUHAMM~1/AppData/Local/Temp/Rtmpsx4n5u/ggbiplot_0.5.tar.gz …Run Code Online (Sandbox Code Playgroud) 我正在使用Roxygen2和构建我的R包devtools,并且我想在我的R代码中添加一些引用信息(即我希望写入一个.R可以自动生成引用的文件).一旦我运行命令citation(MyPkgName),最终的目标是显示R包的引用以及我提交的论文的引文(最好用BibTeX条目).有没有办法做到这一点devtools?谢谢!
我正在尝试使用R编写测试testthat.二者testthat并devtools使用已安装的install_github,测试代码是在tests/testthat和test-all.R处于tests.使用R CMD检查我得到
- 检查测试...运行'test-all.R'确定
和
> test()
测试FASTIN
加载FASTIN
IO测试:......
同样
> test_package('FASTIN')
IO测试:......
非常满意我的第一次测试经验,我现在想用`auto_test_package'自动监控进一步的开发,但是从包根目录调用9it给出:
> auto_test_package('./')
IO test:......
摘要中的错误(path,file = TRUE):指定的路径名不是文件:/ Users/phil/Work/FASTIN-R/FASTIN-R /测试/ testthat
我想这意味着测试运行但一旦完成就会出错?尝试手动设置它auto_test会产生相同的错误:
> auto_test('./ R /','./
test /')IO test:......
摘要错误(path,file = TRUE):指定的路径名不是文件:/ Users/phil /工作/ FASTIN-R/FASTIN-R /测试/ testthat
我尝试设置auto_test使用test/testthat,但这次测试运行但也抛出错误...
auto_test('./ R /','./ tests/testthat /')
IO测试:12
1.错误:SI导入正常工作-------------------- -------------------------------------------------- --------------------
nchar(SI.predators)> 0&nchar(SI.preys)> 0不为TRUE
1:addSI(SI.predators = SI.捕食者,SI.preys = SI.preys,Frac.Coeffs.mean = Frac.Coeffs.mean,Frac.Coeffs.var …
我的inst/extdata中有一个文件helper.RData文件,其中包含我的包中的函数要使用的变量和数据集,但并不意味着用户可以访问.
我使用以下命令在包的开头加载它:
load(system.file("extdata","helper.RData", package = "mypackage"))
Run Code Online (Sandbox Code Playgroud)
由于文件很大,这需要相当多的时间,并且在开发过程中尤其令人烦恼(我load_all()从devtools包中使用了相当多的功能).
我宁愿让它延迟加载,以便只在实际需要时才加载文件.
我怎样才能做到这一点?
你好我下面教程这里从希拉里和这里从哈德利韦翰试图创建一个虚拟包.
但是,我的包需要一些外部依赖项XML,RCurl在这种情况下,当我运行命令文档时,它会抱怨:
> setwd('/home/datafireball/projects/Rprojects/rgetout/rgetout')
> document()
Error: could not find function "document"
> library(devtools)
> document()
Updating rgetout documentation
Loading rgetout
Loading required namespace: XML
Error in (function (dep_name, dep_ver = NA, dep_compare = NA) :
Dependency package XML not available.
>
Run Code Online (Sandbox Code Playgroud)
这是我的DESCRIPTION档案.
Package: rgetout
Title: A R package to get all the outlinks for a given URL
Version: 0.1
Authors@R: "Eric Cartman <Eric.Cartman@gmail.com> [aut, cre]"
Description: This package is …Run Code Online (Sandbox Code Playgroud) 默认情况下,当使用R中的包中的install_github函数时,devtools不会构建已安装包的插图.我已经看到了这个问题,答案显示了如果想要
从github构建R包中如何构建小插图:如何禁用构建小插图?.
我写了一个带有这样的小插图的包,但我收到一个错误,直接从github安装如下:
> devtools::install_github("MarcinKosinski/RTCGA")
Downloading github repo MarcinKosinski/RTCGA@master
Installing RTCGA
'/usr/lib/R/bin/R' --vanilla CMD INSTALL \
'/tmp/RtmpCIboSY/devtools17de96523e5/MarcinKosinski-RTCGA-e47bdf6' \
--library='/home/mkosinski/R/x86_64-pc-linux-gnu-library/3.2' \
--install-tests
* installing *source* package ‘RTCGA’ ...
** R
** tests
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded
* DONE (RTCGA)
> browseVignettes("RTCGA")
No vignettes found by browseVignettes("RTCGA")
> ?devtools::install_github
> devtools::install_github("MarcinKosinski/RTCGA", build_vignettes= …Run Code Online (Sandbox Code Playgroud) 我只是偶然发现存储内部包数据的可能性/R/sysdata.rda.但是,我不知道应该如何存储多个对象?
我可以存储一个单独的对象,但我希望通过它可以提供更多sysdata.rda.我知道可以通过查看Dichromats软件包来实现,如Hadley R软件包网站http://r-pkgs.had.co.nz/data.html所示.
我试过下面的代码.
> devtools::use_data(data, data, internal = TRUE)
Saving data, data as sysdata.rda to C:\Users\USER\Documents\R\package/R
> devtools::use_data(data2, data2, internal = TRUE)
Error: sysdata.rda already exists in C:/Users/User/Documents/R/package/R. Use overwrite = TRUE to overwrite
In addition: Warning message: Saving duplicates only once: data2
Run Code Online (Sandbox Code Playgroud) devtools::install_git通过代理与GitLab一起引发Installation failed: Error in 'git2r_clone': failed to send request: A connection with the server could not be established错误。
为了测试我的GitLab和GitHub工作流程,我创建了一些存储库:
在文件的.gitconfig建立我公司的代理服务器设置后,我能够访问他们所有在HTTPS与例如从混帐bash的控制台git fetch github_public master,在那里github_public简直就是https://github.com/m-dz/md.test_public.git等
设置代理(需要使用devtools::install_github)后:
httr::set_config(
httr::use_proxy(
url = 'proxy_url',
port = proxy_port,
username = 'username',
password = 'password'
)
)
Run Code Online (Sandbox Code Playgroud)
和更新都devtools和git2r到开发版本(只是要确定)与devtools::install_github我能够使用:
devtools::install_git('https://github.com/m-dz/md.test_public.git', quiet = FALSE)
Run Code Online (Sandbox Code Playgroud)
从GitHub安装公共仓库(但devtools::install_github('m-dz/md.test_public') …
我想从github安装一个包,并跳过arch i386的安装.基于这个问题(遗憾的是没有回答),我尝试了以下但无济于事:
library(devtools)
install_github("ramnathv/rCharts", configure.args = "--no-multiarch")
install_github("ramnathv/rCharts", configure.args = list(rCharts = "--no-multiarch"))
install_github("ramnathv/rCharts", configure.args = list(`ramnathv/rCharts` = "--no-multiarch"))
install_github("ramnathv/rCharts", configure.vars = "--no-multiarch")
install_github("ramnathv/rCharts", configure.vars = list(rCharts = "--no-multiarch"))
install_github("ramnathv/rCharts", configure.vars = list(`ramnathv/rCharts` = "--no-multiarch"))
Run Code Online (Sandbox Code Playgroud)
我可以通过下载软件包并通过安装来实现我的目标
R CMD INSTALL --no-multiarch rCharts.tar.gz
Run Code Online (Sandbox Code Playgroud)
使用devtools :: install_github时,如何指定"--no-multiarch"参数?
我正在使用devtools_1.12.0运行R3.3.0.使用packrat_0.4.7-1创建本地库.
请参阅下面的sessionInfo:
R version 3.3.0 (2016-05-03)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows Server >= 2012 x64 (build 9200)
locale:
[1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252 LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C LC_TIME=English_United States.1252
attached base packages:
[1] …Run Code Online (Sandbox Code Playgroud) 带Flutter的DevTools中的绿色大右箭头(->)是什么意思?
我想这与可交互区域有关,但我不确定。
该代码与Flutter中的代码相同,第二页位于第1页时无法单击。这是简化的代码:
PageController _controller = PageController(initialPage: 0, viewportFraction: 0.5);
@override
Widget build(BuildContext context) {
return Container(
color: Colors.yellow,
child: PageView(
controller: _controller,
children: <Widget>[
Center(
child: FlatButton(
onPressed: () {},
color: Colors.red,
child: Text('First Tab'),
),
),
Center(
child: FlatButton(
onPressed: () {},
color: Colors.blue,
child: Text('Second Tab'),
),
),
Center(
child: FlatButton(
onPressed: () {},
color: Colors.green,
child: Text('Third Tab'),
),
),
],
),
);
}
Run Code Online (Sandbox Code Playgroud)