在Linux上,它位于output$modelSummary <- renderPrint({
req(input$file1)
df <- read.csv(input$file1$datapath,
header = input$header,
sep = input$sep,
quote = input$quote)
model <- load(file = "SimpleLinearRegression.rda")
YE <- data.frame(YearsExperience = df$YearsExperience)
dat2 <- data.frame(YE, Predicted = predict(get(model), YE))
print(merge(df, dat2, by = 'YearsExperience', all.y = TRUE)) })
上,该子目录有一个名为$HOME/.cargo/registry
的子目录。有没有办法找到在Windows和MacOS上也可以使用的目录?