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
document() failing after upgrade from 1.7.0 to 1.12.0 due to NAMESPACE file #1466
Comments
I've had a similar issue with devtools 1.12 and roxygen2 6.0.1. However, I was able to get this to work with devtools 1.12 and roxygen2 4.0.1. If you rolled back to your roxygen2 4.1.1, are you able to get this to work? EDIT: |
Just delete the contents of NAMESPACE, without deleting the complete file. |
I have the same issue. |
Just keep the |
Thank you for all the suggestions. Adding # Generated by roxygen2: do not edit by hand to the namespace file is the workaround that worked for me. It does feel like a workaround not a fix though: I'm not sure a function designed to create the documentation should fail with an error if a piece of documentation doesn't exist.
----Original message----
From : notifications@github.com
Date : 09/03/2017 - 13:06 (GMT)
To : devtools@noreply.github.com
Cc : ralpholsson@btinternet.com, author@noreply.github.com
Subject : Re: [hadley/devtools] document() failing after upgrade from 1.7.0 to 1.12.0 due to NAMESPACE file (#1466)
Just keep the # Generated by roxygen2: do not edit by hand line at the top then.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/hadley/devtools","title":"hadley/devtools","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/hadley/devtools"}},"updates":{"snippets":[{"icon":"PERSON","message":"@jimhester in #1466: Just keep the `# Generated by roxygen2: do not edit by hand` line at the top then."}],"action":{"name":"View Issue","url":"#1466 (comment)"}}}
|
This old issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with reprex) and link to this issue. https://reprex.tidyverse.org/ |
Note: Also upgrading roxygen2 from 4.1.1 to 6.0.1
Hi,
I have a package for which document() was working with devtools 1.7.0 and roxygen2 4.1.1.
After upgrading to devtools 1.12.0 and roxygen2 6.0.1 it fails as follows:
If the NAMESPACE file exists prior to calling document I get
with the result that build fails as my imports and exports are not set up (previously the NAMESPACE file was over-written).
However, if I delete the existing NAMESPACE file (which should be fully created by roxygen2 anyway) I get
This error occurs in the call to install_min
from compile_dll
from load_all
from document
The text was updated successfully, but these errors were encountered: