Closed moldach closed 5 years ago
Thanks! I was not able to reproduce the bug. Can you try again but not nested inside a project? And I've updated the function a little bit to have the checkpoint stuff at the end, but to be safe and see whether it comes from checkpoint or not, please run createBasicProject("projectname", packagdeps = "none")
.
What I was able to do is to improve the code creating and resetting projects but it won't solve your problem. :thinking:
Kind of wondering if this may be a .file issue nowπ€·ββοΈ
I remember the "./" warning from my first issue. I'll look back into the closed issues to see what I did before to "fix" this; a few days prior when everything ran fine, I don't recall seeing the "creating a project in a project" warning.
Sent from my iPhone
On Feb 28, 2019, at 04:28, MaΓ«lle Salmon notifications@github.com<mailto:notifications@github.com> wrote:
CAUTION: This Email is External.
What I was able to do is to improve the code creating and resetting projects but it won't solve your problem. π€
β You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/lockedata/starters/issues/124#issuecomment-468200754, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AFe62br_C5t8cAVF_dM7VDw6YYIcDEHVks5vR6EqgaJpZM4bV_5g.
CAUTION: External Email This Email originated from outside the University of Calgary. Please exercise caution when opening attachments, clicking on links or when asked to enter usernames/passwords. Report suspicious emails to "reportphishingβ@βucalgary.ca" or via the Junk Email Reporting Add-in in the Outlook toolbar. For more information, call the IT Support Centre.
Delete the .rproj/.git that might be at ./, now starters
should no longer create those by mistake (I had some bad code for setting /resetting projects that caused this weird issue)
There was a .git
folder (and .rproj
) in ./
and I've deleted them. The other three functions work but I'm presented with a new error from createPackageProject()
now:
createPackageProject("packageProjTest")
β Creating 'packageProjTest/'
β Writing 'DESCRIPTION'
Package: Documents
Title: What the Package Does (One Line, Title Case)
Version: 0.0.0.9000
Authors@R (parsed):
* Matthew Oldach <moldach686@gmail.com> [aut, cre]
Description: What the package does (one paragraph).
License: MIT + file LICENSE
Encoding: UTF-8
Language: es
LazyData: true
β Writing 'NAMESPACE'
β Writing 'Documents.Rproj'
β Adding '.Rproj.user' to '.gitignore'
β Adding '^Documents\\.Rproj$', '^\\.Rproj\\.user$' to '.Rbuildignore'
β Setting active project to '<no active project>'
β Setting active project to 'C:/Users/Matthew/Documents/packageProjTest'
β Writing 'CODE_OF_CONDUCT.md'
β Adding '^CODE_OF_CONDUCT\\.md$' to '.Rbuildignore'
β Don't forget to describe the code of conduct in your README:
Please note that the 'Documents' project is released with a
[Contributor Code of Conduct](CODE_OF_CONDUCT.md).
By contributing to this project, you agree to abide by its terms.
[Copied to clipboard]
β Writing 'LICENSE.md'
β Adding '^LICENSE\\.md$' to '.Rbuildignore'
β Writing 'LICENSE'
β Writing 'R/Documents-package.R'
Error: cannot open the connection
Oops! An error was found and the `packageProjTest` directory was deleted
β Setting active project to 'C:/Users/Matthew/Documents'
Warning message:
In cat(lines, file = con, sep = "") :
cannot open file 'C:/Users/Matthew/Documents/packageProjTest/R/Documents-package.R': No such file or directory
It seems to be still trying to create those (.rproj
and .git
) in ./
Weird is this due to some restrictions on the file created? I.e no write rights?
Hmm strange thing, not sure what I did to fix it but I was doing some work on one of my git repos for a bit and returned to try this again and it magically worked all of a sudden.
I've just made my first PR for the open = FALSE
argument
Good, I'll close this issue but of course feel free to open any new issue if you encounter a new problem! And thanks for the PR!
I was about to send a PR for the
open = FALSE
argument; things were going great for the first three functions but then something went horribly wrong on the fourth one πObviously, I thought it was a mistake I made in the code. I made sure to delete the local repo and install a-new, then I used
lookup::lookup
to make sure that I was in fact using code fromlockedata/starters
. Now all four functions won't work for me!At first the error was:
A SO post suggested the following:
I get a new error but not sure how to resolve.
using
starters::start_here()
I see: