Skip to content
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

Ap 330/feature v3 #38

Merged
merged 2 commits into from
Aug 12, 2015
Merged

Ap 330/feature v3 #38

merged 2 commits into from
Aug 12, 2015

Conversation

ccleung
Copy link
Contributor

@ccleung ccleung commented Aug 10, 2015

WIP

@@ -11,7 +11,8 @@ Description: Functions for interacting directly with the Quandl API to offer dat
in a number of formats usable in R, as well as the ability to search.
Imports:
httr (>= 0.6.1),
zoo
zoo,
jsonlite
Suggests:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@RaymondMcT
Copy link
Contributor

xts needs to stay in depends as the package will break if it is moved into imports. If I move timeSeries into imports it will be automatically installed with Quandl. It is the intention to expand the return formats eventually to some of the others in R (its, irts, etc.) and I do not want them to be required installations with the package.

As well adding the lines

#' @import httr
#' @import jsonlite

Will load the entirety of httr and jsonlite into the global namespace, which I don't think is necessary.

@dmpe
Copy link
Contributor

dmpe commented Aug 11, 2015

In regard to the second one: you can also use importFrom pck fnct.

-> timeseries: then it should be documented (+at least added to the
suggested ones; saw later as it is already done; sorry)

@ccleung ccleung force-pushed the AP-330/feature-v3 branch 6 times, most recently from d1f34ea to 36f31a4 Compare August 12, 2015 13:15
@ccleung
Copy link
Contributor Author

ccleung commented Aug 12, 2015

@dmpe Is there a reason why you want to import the namespace directives? we are hoping to following best practices seen in other popular R packages, e.g., devtools does not import package namespaces: https://github.com/hadley/devtools/blob/master/R/github.R#L10 and we prefer not to do so as well

@ccleung ccleung force-pushed the AP-330/feature-v3 branch 2 times, most recently from a16a8d9 to 99fc4bb Compare August 12, 2015 14:11
add bulk download
update docs and README
RaymondMcT pushed a commit that referenced this pull request Aug 12, 2015
@RaymondMcT RaymondMcT merged commit 7a0d986 into master Aug 12, 2015
@RaymondMcT RaymondMcT deleted the AP-330/feature-v3 branch August 12, 2015 16:06
@dmpe
Copy link
Contributor

dmpe commented Aug 12, 2015

@ccleung

Yes.
ropensci/software-review#17 (comment) (section Imports)

You have httr and jsonlite (and many others) as Imports in DESCRIPTION file, but they aren't listed in any @ import. Was there a reason behind this? Even though httr and jsonlite are namespaced, those will still fail for users that don't have those pkgs installed.

best practices seen in other popular R packages: Well, dplyr is very popular.

https://github.com/hadley/dplyr/search?utf8=%E2%9C%93&q=importFrom&type=Code
https://github.com/ropensci/geojsonio/search?utf8=%E2%9C%93&q=import&type=Code
https://github.com/ropensci/fulltext/search?utf8=%E2%9C%93&q=import

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants