-
Notifications
You must be signed in to change notification settings - Fork 232
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
Problem using openxlsx2::wb_workbook with roxygen2 #1510
Comments
I don't think that this is not a roxygen2 issue. Instead of |
Hi, Gábor:
How can I edit the NAMESPACE file?
The NAMESPACE file begins, "# Generated by roxygen2: do not edit by
hand". I don't know how to fix this.
Thanks,
Spencer Graves
…On 8/23/23 2:00 PM, Gábor Csárdi wrote:
I don't think that this is not a roxygen2 issue. Instead of |library()|
calls, import the needed objects in the |NAMESPACE| file.
—
Reply to this email directly, view it on GitHub
<#1510 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABZCVYOS4PTXIP7LXGAR7SDXWZHMJANCNFSM6AAAAAA334V6EM>.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
See the docs about importing objects here: https://roxygen2.r-lib.org/articles/namespace.html#imports I.e.
|
Hi, Gábor et al.:
Got it. Thanks.
Spencer Graves
p.s. I searched for things like that but missed the keyword "importFrom".
…On 8/23/23 2:34 PM, Gábor Csárdi wrote:
See the docs about importing objects here:
https://roxygen2.r-lib.org/articles/namespace.html#imports
<https://roxygen2.r-lib.org/articles/namespace.html#imports>
I.e.
|#' @importFrom pkg fun |
—
Reply to this email directly, view it on GitHub
<#1510 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABZCVYNNDSACSEUJQ3CG6ULXWZLNBANCNFSM6AAAAAA334V6EM>.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How can I use the R6 coding in package openxlsx2 with roxygen2?
Function
print.FCCquery in GitHub package sbgraves237/broadcastPower
includes
require(openxlsx2)
with
wbO2 <- wb_workbook(title=xNm) wbO2$add_worksheet(sheet='data.frame')
This works when I source and test it locally, but GitHub Action complains:
'library' or 'require' call not declared from: ‘openxlsx2’ ... Please use :: or requireNamespace() instead.
The NAMESPACE file begins, "# Generated by roxygen2: do not edit by hand
". I don't know how to fix this.
When I tried,
wbO2$openxlsx2::add_worksheet(sheet='data.frame')
document()
gave
Error in
load_all()
... unexpected '::'66: class(xdf) <- 'data.frame'
67: wbO2$openxlsx2::
What do you suggest? Thanks, Spencer Graves
The text was updated successfully, but these errors were encountered: