小编Luc*_*lia的帖子

devtools :: install_github函数错误(type,msg,asError = TRUE):<not set>

我正试图devtools::install_github第一次安装一个包

l@np350v5c:~$ R --vanilla
> library(devtools)

Attaching package: ‘devtools’

The following objects are masked from ‘package:utils’:

    ?, help

The following object is masked from ‘package:base’:

    system.file

> search()
 [1] ".GlobalEnv"        "package:devtools"  "package:stats"    
 [4] "package:graphics"  "package:grDevices" "package:utils"    
 [7] "package:datasets"  "package:methods"   "Autoloads"        
[10] "package:base"
Run Code Online (Sandbox Code Playgroud)

但是,例如

> install_github("devtools")
Installing github repo devtools/master from hadley
Downloading master.zip from https://github.com/hadley/devtools/archive/master.zip
Errore in function (type, msg, asError = TRUE)  : <not set>
Run Code Online (Sandbox Code Playgroud)

输出traceback()

> traceback()
12: fun(structure(list(message = msg, call = sys.call()), …
Run Code Online (Sandbox Code Playgroud)

r devtools

8
推荐指数
1
解决办法
6739
查看次数

bash中的Makefile变量自动完成

让我们说我的Makefile是这样的:

DIR :=#

foobar:

   ls ${DIR}
Run Code Online (Sandbox Code Playgroud)

当我打字

mak[tab] f[tab]
Run Code Online (Sandbox Code Playgroud)

它给出了正确的

make foobar
Run Code Online (Sandbox Code Playgroud)

make foobar D[tab]
Run Code Online (Sandbox Code Playgroud)

不做魔术

make foobar DIR=
Run Code Online (Sandbox Code Playgroud)

所以我的问题是:有没有办法在bash中自动完成Makefile变量(除了目标)?

variables bash makefile autocomplete

7
推荐指数
1
解决办法
2197
查看次数

devtools :: document vs roxygen2 :: roxygenize

前段时间我读过的地方devtools::documentroxygen2::roxygenize"复杂的包/坐标" 更好(这是我记得的),但不幸的是我现在找不到链接,当时我没有加深.

看看各自的帮助页面,我不清楚如何,所以我的问题是:如果有时候使用devtools::document而不是 在某些情况下更好roxygen2::roxygenize?哪种包装?

谢谢,卢卡

r devtools roxygen2

3
推荐指数
1
解决办法
788
查看次数

标签 统计

devtools ×2

r ×2

autocomplete ×1

bash ×1

makefile ×1

roxygen2 ×1

variables ×1