Default save location

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #503
    user2000
    Member

    Hi folks

    I am a newbie to R but am keen to learn.

    My first question relates to the default save location.

    When I open R and select File > Change dir, I am able to select my chosen folder in which to save work.

    Unfortunately when I restart R this path defaults back to My Documents.

    So, is this something I have to set in a specific user profile?

    Thanks in advance!

    Regards

    Eddie

    #505
    bryan
    Participant

    You can change this by setting the working directory in the Rprofile.site file. This is in “your-R-version-directory/etc/”.

    On a new line add:
    setwd("C:/NewSaveLocation")

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Scroll to top
Privacy Policy