-
Notifications
You must be signed in to change notification settings - Fork 16
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
Error: project name with hyphen and underscore #36
Comments
Because we use the R package capability to manage dependencies, the R package naming rules apply. These are:
We should probably have some sort of rollback so that it doesn't leave a partial implementation on the file system and some validation on the name to reduce confusion and errors. I'll raise separate tickets for these. I hope the above info helped and if you'd like to work on making it easier for other users we happily accept Pull Requests and offer mentoring through the process if you haven't made changes to an R package on github before. |
After reading your answer and R Package book again, I understood the error. Because you use the R package to create the new project, I have no idea how to deal with this name rule. Anyway, I think your package approach has some advantages (e.g., dependencies as you mentioned). I will start to use package rather than a folder structure as in |
In terms of a name that satisfies the use of a delimiter between terms and the package rules, you could run In terms of making things more user friendly in the long run, we could cleanse the name so it satisfies folder name conventions and package name conventions in the DESCRIPTION. Do you think them differing would you cause you difficulties? |
Yes, I just want to create a project's name that easy to read. So it's a good idea to use |
Awesome, sorry the error was unclear and we've got stuff on the TODO to try and improve the experience for folks. Please feel free to provide Issues with bugs or feedback and, of course, if you wanna make some changes yourself please feel to tackle an issue and submit a PR. We'll also offer help along the way if you need it. |
Hi, thank you for your package. Today I got an error when I tried to create a new package with underscore or hyphen, as below:
This code created an empty folder with the name
sample-one
. Do you have any idea? Sometimes, it is inconvenient without the hyphen to name a project. Now my solution is a name without the hyphen first, then rename it later.The text was updated successfully, but these errors were encountered: