-
Notifications
You must be signed in to change notification settings - Fork 37
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
object ‘Teams’ is not exported by 'namespace:Lahman' #67
Comments
How are you referencing the Teams data in your package?
|
In your code at line 146, how about
|
Hello @friendly, Thanks for your prompt reply. I've tried both of your proposals but I get the same error (after those modifications):
|
I still don't understand the source of this problem, but you might check out how this is handled in some other packages that suggest / depend on Lahman. There is nothing (no code) I can see on your Github site, so I don't think I can help further Reverse suggests: | baseballDBR, broom, dbplyr, dplyr, ibawds, implyr, mdsr, pinnacle.data, raw, sparklyr, teamcolors |
Thanks for your support anyway. Meanwhile, I've just implemented a workaround to solve the error:
I've just exported the |
I don't think data frames are "exported" by packages. Using the triple colon notation feels like the right solution to me. |
Hello Lahman contributors,
I'm developing an R package (bbgraphsR) that uses the
Teams
dataframe from your package in one of my functions (viz_standings), but either when runningdevtools::load_all()
ordevtools::check()
, I receive the following warning:I indeed checked the NAMESPACE file and it makes sense because there is no line exporting that table.
In that case, can I save the table data and use it in my package?
Or is it expected to export that table in the future?
Thanks in advance for your feedback.
Regards.
Daniel.
The text was updated successfully, but these errors were encountered: