Hi STATAlisters!
The problem that I have is 2 pronged. I am trying to change my current working directory with the cd command like so:
It runs without an issue. But when I try to check what directory I am working in using the pwd command, it returns the following line
I am really not sure what I am doing wrong or if there are any access settings I need to tweak.
The second problem I have is that after changing the directory, I am writing the following code:
And it returns:
I have used these commands so many times - and I do not see what the issue is. The rest of the do file is still empty as I am just starting a new code.
Thanks in advance,
Nilima
EDIT: The following line works:
There seems to be an error with my referencing that folder. I do not want to be writing the entire path every time I have to open a file or a log or a dataset. It will not only be time-consuming but also be a reading nightmare for the professors I will be sharing my code with. Any help is appreciated.
The problem that I have is 2 pronged. I am trying to change my current working directory with the cd command like so:
Code:
cd "/Users/npisharody/Documents/Research"
Code:
macOS refuses to provide that information
The second problem I have is that after changing the directory, I am writing the following code:
Code:
capture mkdir "/Log Files" log using "/Log Files/graphs.log", replace
Code:
file /Log Files/graphs.log could not be opened
Thanks in advance,
Nilima
EDIT: The following line works:
Code:
log using "~/Documents/Research/Log Files/graphs.log", replace
Comment