{
  "id": 477047,
  "title": "How to specify submission-file in R-notebook",
  "url": "/competitions/home-credit-credit-risk-model-stability/discussion/477047",
  "author_name": "",
  "post_date": "2024-02-14T14:18:02.212610800Z",
  "votes": 1,
  "comment_count": 2,
  "views": 0,
  "content": "<p>This is my first note-book competition…</p>\n<p>Please, can somebody tell me how to produce valid notebook-output in a R-notebook.</p>\n<p>My last statements in notebok were</p>\n<p>df_submit = data.frame(case_id=c(57543, 57549, 57551, 57552, 57569, 57630:57634), score=rep(0.5, 10))<br>\nsubfile = paste0(\"..\", \"/submission.csv\")<br>\nwrite.csv(df_submit, row.names=FALSE, file=subfile)</p>\n<p>But submitting the notebook the dialogue does not show me an output-file and submit-button remains gray.</p>\n<p>Thanks a lot!</p>",
  "messages": [
    {
      "id": "2652023",
      "postDate": "02/14/2024 14:18:02",
      "content": "<p>This is my first note-book competition…</p>\n<p>Please, can somebody tell me how to produce valid notebook-output in a R-notebook.</p>\n<p>My last statements in notebok were</p>\n<p>df_submit = data.frame(case_id=c(57543, 57549, 57551, 57552, 57569, 57630:57634), score=rep(0.5, 10))<br>\nsubfile = paste0(\"..\", \"/submission.csv\")<br>\nwrite.csv(df_submit, row.names=FALSE, file=subfile)</p>\n<p>But submitting the notebook the dialogue does not show me an output-file and submit-button remains gray.</p>\n<p>Thanks a lot!</p>",
      "rawMarkdown": "This is my first note-book competition...\n\nPlease, can somebody tell me how to produce valid notebook-output in a R-notebook.\n\nMy last statements in notebok were\n\ndf_submit = data.frame(case_id=c(57543, 57549, 57551, 57552, 57569, 57630:57634), score=rep(0.5, 10))\nsubfile = paste0(\"..\", \"/submission.csv\")\nwrite.csv(df_submit, row.names=FALSE, file=subfile)\n\nBut submitting the notebook the dialogue does not show me an output-file and submit-button remains gray.\n\nThanks a lot!",
      "votes": null
    },
    {
      "id": "2652686",
      "postDate": "02/15/2024 00:04:12",
      "content": "<blockquote>\n  <p>subfile = paste0(\"..\", \"/submission.csv\")</p>\n</blockquote>\n<p>It seems that the submission file was saved in the parent directory. The submission file must be in <code>/kaggle/working</code> (current working directory unless you changed).</p>",
      "rawMarkdown": "> subfile = paste0(\"..\", \"/submission.csv\")\n\nIt seems that the submission file was saved in the parent directory. The submission file must be in `/kaggle/working` (current working directory unless you changed).",
      "votes": null
    },
    {
      "id": "2652990",
      "postDate": "02/15/2024 05:54:10",
      "content": "<p>Thank you very much, that was the reason…!!</p>",
      "rawMarkdown": "Thank you very much, that was the reason…!!",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 2652686,
      "author_name": "taichiuemura",
      "author_url": "",
      "post_date": "02/15/2024 00:04:12",
      "content": "<blockquote>\n  <p>subfile = paste0(\"..\", \"/submission.csv\")</p>\n</blockquote>\n<p>It seems that the submission file was saved in the parent directory. The submission file must be in <code>/kaggle/working</code> (current working directory unless you changed).</p>",
      "votes": null,
      "replies": [
        {
          "id": 2652990,
          "author_name": "karlb3030",
          "author_url": "",
          "post_date": "02/15/2024 05:54:10",
          "content": "<p>Thank you very much, that was the reason…!!</p>",
          "votes": null,
          "replies": []
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "2652023": "This is my first note-book competition...\n\nPlease, can somebody tell me how to produce valid notebook-output in a R-notebook.\n\nMy last statements in notebok were\n\ndf_submit = data.frame(case_id=c(57543, 57549, 57551, 57552, 57569, 57630:57634), score=rep(0.5, 10))\nsubfile = paste0(\"..\", \"/submission.csv\")\nwrite.csv(df_submit, row.names=FALSE, file=subfile)\n\nBut submitting the notebook the dialogue does not show me an output-file and submit-button remains gray.\n\nThanks a lot!",
    "2652686": "> subfile = paste0(\"..\", \"/submission.csv\")\n\nIt seems that the submission file was saved in the parent directory. The submission file must be in `/kaggle/working` (current working directory unless you changed).",
    "2652990": "Thank you very much, that was the reason…!!"
  },
  "source": "meta"
}