не удается импортировать данные из CSV на сервере машинного обучения MS

Я могу составить следующее

EXEC sp_execute_external_script @language =N'R',
@script=N'
x <- c(1,2,3,4,5)
y <- c("a","b","c","d","e")

df <- data.frame(x,y)
OutputDataSet = df
'

Однако, когда я пытаюсь импортировать данные из csv, как показано ниже,

@script=N'
df <- read.csv("C:\\Users\\LENOVO\\Desktop\\data\\loan.csv")
OutputDataSet = df
'
WITH RESULT SETS (( 
                     id INT
                    ,loan_amnt INT
                    ))

Я получаю такую ​​ошибку:

A 'R' script error occurred during execution of 'sp_execute_external_script' with HRESULT 0x80004004.
Msg 39019, Level 16, State 2, Line 47
An external script error occurred: 
Error in file(file, "rt") : cannot open the connection
Calls: source ... withVisible -> eval -> eval -> read.csv -> read.table -> file
In addition: Warning message:
In file(file, "rt") :
  cannot open file 'C:\Users\LENOVO\Desktop\data\loan.csv': Permission denied

Error in execution.  Check the output for more information.
Error in eval(ei, envir) : 
  Error in execution.  Check the output for more information.
Calls: runScriptFile -> source -> withVisible -> eval -> eval -> .Call
Execution halted

Я пытался решить эту проблему, но решение пока не помогло. В чем причина проблемы?

0 ответов

Другие вопросы по тегам