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

.RProj creation #201

Closed
rsangole opened this issue Jul 7, 2017 · 8 comments
Closed

.RProj creation #201

rsangole opened this issue Jul 7, 2017 · 8 comments
Labels

Comments

@rsangole
Copy link
Collaborator

rsangole commented Jul 7, 2017

I'm requesting a feature in the create.project() function that also creates a ProjectName.RProj file (and associated files) to the root folder?

I use ProjectTemplate reguarly now with RStudio, but since the function doesn't create a .RProj itself, it's a two step process for me today - i. Call create.project, and ii. Create a new R project within existing directory.

The advantage of making the work an RStudio project is

  1. Project specific configurations like Code Editing controls, Build tools controls, Git/SVN controls etc
  2. RStudio functionality for loading a new project using the dropdown menu on the top right hand side
@KentonWhite
Copy link
Owner

@rsangole This sounds like a very nice feature. I don't use RStudio personally but do know that many of our users do. I'm not super familiar with how the .RProj file is supposed to look. Could you start a pull request with a new folder inst/defaults/rstudio that is a copy of inst/defaults/full and then place in that folder the .RProj file you would like and where it should be in the directory structure. We can then modify create.project() so that it takes a rstudio flag.

@rsangole
Copy link
Collaborator Author

Will do, cheers!

@rsangole
Copy link
Collaborator Author

Sent you an email, cheers.

@rsangole
Copy link
Collaborator Author

Hello, following up on this request; lost track of time. (But, the feature is still really useful!)

@Hugovdberg
Copy link
Collaborator

Hugovdberg commented Nov 27, 2017 via email

@rsangole
Copy link
Collaborator Author

Yea, I don't see why not. We can create a default template which hosts a basic .RProj file, and write a small function to rename it to the project name. Fits well within #206 framework.

@Hugovdberg
Copy link
Collaborator

I would suggest not to add another builtin template but either leave it up to the user to create his or her own custom template if an .Rproj file is necessary, or always add the .Rproj to the full template. The main advantage of putting it in the custom template is that we avoid discussions on whether we want 2, 4 or 8 spaces by default, want to add a new line at the end of the file if it's missing, remove spaces or not..

@rsangole
Copy link
Collaborator Author

That's fair, and it solves the problem at hand.

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

No branches or pull requests

3 participants