#' A rolling dice Function
#'
#' This function simulates the rolling of dice.
#' roll_dice()
roll_dice <- function(bones=1:6) {
sample(bones,2,T)
}
## Выше находится файл 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: