-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'exdir' does not exist #167
Comments
Hi Michael, Sorry about the hassles here. Thanks for posting as a Github issue. I just tried on my Windows machine and the Can you please share with me the results of the following commands at the R console:
For instance, here's the result of me running on mine:
And if all is well with
I'm hoping you simply need to update R packages, ensure you home directory (`~') is writeable or some such easy fix. PS CC'ing @jules32. |
Hi Mike, Thanks for posting this and Ben for your response. I am definitely here to Cheers, On Fri, Dec 5, 2014 at 12:00 PM, Ben Best [email protected] wrote:
Julia Stewart Lowndes, PhD |
Thanks guys. I'm almost certain it is something wrong in my setup of R as I have installed this properly on a different machine but since my laptop was formatted by IT funny things have been happening. Ben, when running the normalize Path, I get the following:
With the get scenario, I still get the following error message:
Thanks so much for your help. To introduce myself, I've recently started a PhD at Imperial College London with Ben Halpern as my supervisor - I will be applying the OHI to the Arctic. I'm coming out to Santa Barbara in January so look forward to meeting you! Cheers, |
Hi Mike, Are you on the network and can write to your home directory? You can confirm this by pasting the path into the location bar of Windows Explorer and creating a new file or folder there:
You might try using a local path instead, ie on your C drive. Here's a revised version of the install script presuming you've already successfully installed the necessary packages (the first part). Notice the new variable which you should update to a writable local location. # set this path to a writable local directory (note forward slashes)
dir_local = 'C:/Users/mburgass/Documents'
# get scenarios and launch
require(ohicore)
get_scenarios('ohi-science/ohi-global', file.path(dir_local, 'ohi-global'))
launch_app(file.path(dir_local, 'ohi-global/eez2013') The Yes, Ben mentioned you. Happy to hear you'll be visiting in January and look forward to meeting you! |
Hi Ben, The university computers are slightly odd in that there is a c drive and network drive and I think R gets confused between the two. I installed everything to the C drive so I'm not sure why it now goes to that network drive as default. I changed the directory location as you said and the following happened:
When I run get_scenarios() function I get the following:
Sorry for the hassle and thank you so much as I know this is just a problem with the set up of my machine rather than your code. I've tried to go to IT but they're not familiar with R so aren't much use...I thought it best to get this sorted first before I come out though, in case I need to alter something with my computer. Cheers, |
don't apologize Mike for discovering an issue with using the toolbox -- On 12/8/2014 12:37 PM, mburgass wrote:
Benjamin S. Halpern Chair in Marine Conservation, Imperial College London Director, Center for Marine Assessment and Planning (CMAP) Senior Fellow, UN Envir. Prog.- World Conserv. Monitor. Cent. (UNEP-WCMC) Research Biologist, Nat'l. Center for Ecol. Anal. & Synth. (NCEAS) |
Hi Mike, Thanks for you patience getting through this. I see a typo now in my previous script shared just with you (not from original install): forgot a closing parenthesis. I can tell because of the extra Try this instead: # set this path to a writable local directory (note forward slashes)
dir_local = 'C:/R'
# get scenarios and launch
require(ohicore)
get_scenarios('ohi-science/ohi-global', file.path(dir_local, 'ohi-global'))
launch_app(file.path(dir_local, 'ohi-global/eez2013')) The good news is that the console results indicate this new local path on your C drive now works with the library(ohicore) # have to load the library containing the function first
?get_scenarios # get help on the function So as you suggest, I think this was an issue with your home directory setup, rather than a toolbox error per se. In future, we could add an extra line or two of code in the |
thanks for resolving this: I will create an issue about fixing the error message. |
Great thanks guys - works fine now. Do you think I will have further problems generally given the fact my home folder is not writable? It doesn't appear that I can change it myself so would it be worth to go to IT and ask them to change it? Thanks, |
Hi Mike, I think it would be worth asking IT to change it, because I'm assuming otherwise that you won't have permission to edit existing files in that folder or add new ones? You'll need to be doing that. Cheers, |
Hi,
When trying to install the OHI from the text in the ohi-science.org website I get the following problem. Do you know what can be done to solve it? Thanks
The text was updated successfully, but these errors were encountered: