您能向我解释以下错误吗?

时间:2019-10-16 10:07:56

标签: r docker

#' A rolling dice Function
#'
#' This function simulates the rolling of dice.
#' roll_dice()

roll_dice <- function(bones=1:6) {
  sample(bones,2,T)
}

## Above是一个文件roll_dice.R

打包此文件后,我想将其泊坞窗化。因此,要做到这一点,我首先需要创建一个dockerfile。要创建dockerfile,我正在使用 containerit

 install.packages("remotes")

    library("remotes")

    install_github("o2r-project/containerit")

    df <- containerit::dockerfile(from = "D:/rollDice")

代码行给我以下错误:

INFO [2019-10-16 12:30:32] Found file for packaging in workspace: D:\Dhruv\packages\rollDice/R/roll_dice.R

INFO [2019-10-16 12:30:32] Processing R script file '../../../../D:/Dhruv/packages/rollDice/R/roll_dice.R' locally.

Could not parse R code in: D:/Dhruv/packages/rollDice/R/roll_dice.R
   Make sure you are specifying the right file name
   and check for syntax errors
Error:

0 个答案:

没有答案