-
-
Notifications
You must be signed in to change notification settings - Fork 50
Commit Fail #316
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
Comments
HI @arbues6, sorry to hear you are having such trouble. Are you using the latest version of the package ( |
Hi @lorenzwalthert , thanks for replying so fast. I am using the latest versions (autoupdate returns two messages of "already up to date"). As you suggested in the other issue, I ran:
and I obtain: Styling 1 files: Thanks again, |
The other issue is no longer relevant for you I think. Please remove |
ls -a However, precommit::use_precommit() works fine. Besides, it is not possible to prune through pre-commit (pre-commit: error: argument command: invalid choice: 'prune' (choose from 'autoupdate', 'clean', 'hook-impl', 'gc', 'init-templatedir', 'install', 'install-hooks', 'migrate-config', 'run', 'sample-config', 'try-repo', 'uninstall', 'help')). |
ok my bad, I mean delete the file |
That did the trick, it works! |
👍. I guess the only problem is that I still don’t understand how you ended up like this. |
Uh oh!
There was an error while loading. Please reload this page.
Hi there,
I've been trying to Commit changes to a project through RStudio and I didn't manage to make it work anyhow.
I had similar trouble as #169 , but since the author of that post didn't detail his issue, I wasn't able to reproduce it.
When I commit, I obtain the following error:
style-files..............................................................Failed
Error in packageVersion("precommit") :
there is no package called ‘precommit’
Execution halted
spell-check..........................................(no files to check)
Skippedlintr....................................................................Failed
Error in loadNamespace(x) : there is no package called ‘docopt’
Calls: loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart
Execution halted
readme-rmd-rendered..................................(no files to check)
Skippedparsable-R...............................................................Passed
no-browser-statement.....................................................Passed
Check for added large files..............................................Passed
Fix End of Files.........................................................Passed
Don't commit common R artifacts......................(no files to check)Skipped
The precommit and docopt packages are already installed, and the .libPaths() points to the folder where these packages can be found. Besides, as suggested in #221, I created an environment variable of "R_LIBS_USER" that points to the folder returned by .libPaths().
My guess was that there was a directory problem, but I don't know how to fix it (I tried reinstalling R and RStudio from scratch too).
I hope someone can help me, please, thanks a lot! :)
The text was updated successfully, but these errors were encountered: