Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Can't install fre, estout etc. because of the letter "Å" in my name

    Hi, please help out a Stata-noob!

    Whenever I try to type in "ssc install fre", "ssc install estout" etc. Stata responds with "cannot write in directory C:\Users\Emma Damg�rd Jensen\ado\plus\f". I've been told that it's the "å" in my middle name that causes the trouble, but I don't know how to fix the problem. I'm not very hi-tech myself.. Does anyone know what to do?

  • #2
    Emma Jensen is it possible to just change your directory to the normal a? Like just rename that part of the file path on your computer?

    Comment


    • #3
      It is more likely the Space between Emma and Damgård, so rename the folder

      Code:
      EmmaDamgård
      or
      Code:
      Emma_Damgård
      Last edited by Andrew Musau; 07 Dec 2021, 17:48.

      Comment


      • #4
        Andrew Musau Yeah that would've been my second guess. Stata can be funny about spaces and sometimes atypical characters, so my money's on either of those.

        The other option I guess would be modifying the path in the command to have quotes around it so Stata doesn't mind the string.

        Comment


        • #5
          Accidental Duplicate post.
          Last edited by Richard Williams; 07 Dec 2021, 21:32.
          -------------------------------------------
          Richard Williams, Notre Dame Dept of Sociology
          StataNow Version: 18.5 MP (2 processor)

          EMAIL: [email protected]
          WWW: https://www3.nd.edu/~rwilliam

          Comment


          • #6
            I would be a little nervous about renaming the folder. There will be other subdirectories under it, and something might get zapped if you change the folder name. You might check out

            https://www.lifewire.com/change-user...ows-10-5114140
            -------------------------------------------
            Richard Williams, Notre Dame Dept of Sociology
            StataNow Version: 18.5 MP (2 processor)

            EMAIL: [email protected]
            WWW: https://www3.nd.edu/~rwilliam

            Comment


            • #7
              Thank you so much for the input!

              Comment


              • #8
                It might be wise to get the folder renamed because the odd name could cause problems with other programs. Why not just use a nice, simple user name like jensen or ejensen? On my computer my user name is rwilliam.

                But, you could also just change the location of your ado files, e.g. give a command like

                sysdir set PLUS g:\ado\plus"

                I often have to use classroom machines I have limited control over, so I put a lot of files on Google Drive (which I can read and write to) and then run a short program that gets all the program locations right. My complete program, which I call gprofile.do, is

                Code:
                * Use this when you want to use Google Drive 
                
                noisily display ""
                noisily display "Date & Time: $S_DATE $S_TIME"
                noisily display ""
                
                * These commands personalize your Stata directories.
                * You need to create these directories first.
                * You need to modify this program if G: is not
                * the right drive letter for you.
                local drive "G:\My Drive"
                
                sysdir set OLDPLACE "`drive'\ado"
                sysdir set PERSONAL "`drive'\ado\personal"
                sysdir set PLUS "`drive'\ado\plus"
                
                * Anything after this is optional.
                * You can add other startup commands below.
                * The capture commands will prevent errors in case
                * you have already been working with Stata
                capture log close _all
                capture cmdlog close
                capture log using "`drive'\statalogs\mylog.txt", replace text
                capture cmdlog using "`drive'\statalogs\mycmd.txt", replace
                capture adopath +  "`drive'\statafiles"
                noisily adopath
                -------------------------------------------
                Richard Williams, Notre Dame Dept of Sociology
                StataNow Version: 18.5 MP (2 processor)

                EMAIL: [email protected]
                WWW: https://www3.nd.edu/~rwilliam

                Comment

                Working...
                X