Skip to content
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

rstan_package_skeleton thinks every directory is an existing project directory #42

Open
ksvanhorn opened this issue Oct 15, 2018 · 2 comments

Comments

@ksvanhorn
Copy link

When I run rstan_package_skeleton(path=_somePath_/MLVillageTSA), it does not matter what I choose for _somePath_, it always tells me "New project 'MLVillageTSA' is nested inside an existing project".

@ksvanhorn
Copy link
Author

I think I found the cause. Technically, it's not a bug, just a seriously user-hostile behavior. First of all, the problem wasn't in the directory claimed to be the problem -- it was in an ancestor directory, specifically my user home directory. It took a lot of experimentation, and looking at the actual package code, to figure this out. Secondly, once I had determined that there must be something in my home directory that was making it think it was a project root, it still took at least another half an hour to 45 minutes to find the cause. I deleted every file or directory I could find that started with ".R", and that still didn't solve the problem; eventually I found a "vanhorn.Rproj" file that I had overlooked.

So why couldn't the function tell me this upfront? A simple message saying "/Users/vanhorn/ is a package root -- file /Users/vanhorn/vanhorn.proj found" would have saved me a huge amount of time and frustration.

@bgoodri
Copy link
Collaborator

bgoodri commented Oct 15, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants