RStudio Project and Project Template: can they co-exist?

1,107 views
Skip to first unread message

Ryan Herring

unread,
Aug 2, 2012, 7:43:12 PM8/2/12
to project...@googlegroups.com
Hi,

There are a number of things to like about the RStudio project functionality and I was just wondering if there are any known issues with using that in conjunction with Project Template.  It doesn't seem like there would be, but I'm curious if anyone has ever run into any problems.  I'm just getting started with both in an attempt to make my R analysis more stable and repeatable (instead of the current way I do things by just running things ad-hoc with little organization).  Looking forward to seeing how much better organized I can be with these new tools.

Thanks,
Ryan

John Myles White

unread,
Aug 2, 2012, 8:05:00 PM8/2/12
to project...@googlegroups.com
Hi Ryan,

While I'm not a consistent RStudio user (I use it for only a subset of my work), I've never had problems getting it to work with ProjectTemplate projects. Just make sure to create the project directory in ProjectTemplate first, then create the project in RStudio using the existing directory.

If you come across any problems, please let me know.

-- John

Antonio P. Ramos

unread,
Aug 2, 2012, 8:08:27 PM8/2/12
to project...@googlegroups.com
I've been using both for a while now and with no problem at all. I actually like this set up a lot. 

cho7tom

unread,
Sep 11, 2012, 3:41:00 PM9/11/12
to project...@googlegroups.com
Hello,

I recently discovered the ProjectTemplate package and I am really eager to test it!
However I face an issue while trying to install it (I'm an RStudio user)

Here is what I obtain:

> install.packages("ProjectTemplate")
Installing package(s) into ‘C:/Users/***/Documents/R/win-library/2.15’
(as ‘lib’ is unspecified)
Warning in install.packages :
  InternetOpenUrl failed: 'The operation timed out'
Warning in install.packages :
  InternetOpenUrl failed: 'The operation timed out'
Warning in install.packages :
  unable to access index for repository http://cran.cict.fr/bin/windows/contrib/2.15
Warning in install.packages :
  package ‘ProjectTemplate’ is not available (for R version 2.15.1)

Is there any issue with ProjectTemplate and R v2.25.1? If not, could you please tell me how to proceed?

Regards,

cho7tom

John Myles White

unread,
Sep 11, 2012, 5:14:59 PM9/11/12
to project...@googlegroups.com
I'm not aware of an issue but will look into it. I'm traveling, so it may take me a while to get to it.

You might try the following and see if it works:

install.packages("devtools")
library("devtools")
install_github("ProjectTemplate", username = "johnmyleswhite")

It's possible that the CRAN version is too far out of date to be installed on R 2.15.1.

 -- John

Juan Uys

unread,
Feb 10, 2013, 2:50:16 AM2/10/13
to project...@googlegroups.com
On Friday, August 3, 2012 1:05:00 AM UTC+1, John Myles White wrote:
Just make sure to create the project directory in ProjectTemplate first, then create the project in RStudio using the existing directory.  

When you say "existing directory", do you mean the "reports" subdirectory in the ProjectTemplate-generated structure, or did you mean for RStudio to be used not just for the final report? I need to tell RStudio that "reports" is the working directory, otherwise knitr can't find my main .Rmd file.

I find myself using the R For Mac OS X GUI for all the munging and exploratory stuff, and RStudio just for the final report, but it would be good to hear if others use RStudio exclusively. 

John Myles White

unread,
Feb 10, 2013, 9:22:37 AM2/10/13
to project...@googlegroups.com
I had meant that RStudio should be centered in the project directory, not the reports sub-directory. But if that breaks the knitr steps, I suppose you have to transition to the reports directory at the end.

I don't use RStudio enough to really say what's right. Maybe someone else?

 -- John

--
You received this message because you are subscribed to the Google Groups "ProjectTemplate" group.
To unsubscribe from this group and stop receiving emails from it, send an email to projecttempla...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Stephen Fujiwara

unread,
Aug 1, 2013, 7:42:33 PM8/1/13
to project...@googlegroups.com
I have been (exclusively) using Rstudio + ProjectTemplate for maybe 6 months (but don't use knitr).

This is probably a bit round-a-bout, but these are the steps I use:
  1. create repo online
  2. 'create new project from repository' in Rstudio
  3. create.project() using ProjectTemplate
Reply all
Reply to author
Forward
0 new messages