Skip to content
This repository has been archived by the owner on Oct 15, 2022. It is now read-only.

R: Create New CRAN Fathead #691

Closed
3 of 7 tasks
pjhampton opened this issue Jan 16, 2017 · 13 comments
Closed
3 of 7 tasks

R: Create New CRAN Fathead #691

pjhampton opened this issue Jan 16, 2017 · 13 comments

Comments

@pjhampton
Copy link
Contributor

pjhampton commented Jan 16, 2017

Create a new CRAN (R Package Manager) Fathead Instant Answer

Help us make DuckDuckGo the best search engine for programmers!

What do I need to know?

You'll need to know how to code in Perl, Python, Ruby, or JavaScript.
fathead languages

What am I doing?

You will write a script that scrapes or downloads the data source below, and generates an output.txt file containing the parsed documentation. You can learn more about Fatheads and the output.txt syntax here.

Data source: https://cran.r-project.org/web/packages/available_packages_by_name.html

Instant Answer Page: https://duck.co/ia/view/cran

What is the Goal?

As part of our Programming Mission, we're aiming to reach 100% Instant Answer (IA) coverage for searches related to programming languages by creating new Instant Answers, and improving existing ones.

Here are some Fathead examples:

See more related Instant Answers

Get Started

Resources

@pjhampton
Copy link
Contributor Author

Anybody interested in this? @duckduckgo/duckduckhack-contributors 🚀
This could make a good first Fathead

@gautamkrishnar
Copy link
Collaborator

gautamkrishnar commented Jan 17, 2017

Looking great @pjhampton I would like to work on this. I will populate the output.txt with python.

  • What template should i use, for the fronted?
  • What infos should i have to display?

@gautamkrishnar gautamkrishnar self-assigned this Jan 17, 2017
@laurenancona
Copy link
Collaborator

laurenancona commented Jan 17, 2017

I actually had a local stub repo for this that I was trying to work on last year. I haven't checked back in a while but at the time there was something weird about the way CRAN's master package list was formatted (e.g. I'd thought I would need to write a new scraper).

I'd like to dig back in since this has been on my personal wish list, so I'll take a shot at it @pjhampton

@gautamkrishnar
Copy link
Collaborator

@laurenancona you can take this if you want 👍. Shall i assign you on this?

@pjhampton
Copy link
Contributor Author

Yes, please @gautamkrishnar! And thanks so much @laurenancona!

@laurenancona
Copy link
Collaborator

@pjhampton @gautamkrishnar

Created the IA page:
https://duck.co/ia/view/r_packages

Originally tried to name it CRAN but there is a dead Spice by that name that depends on METACRAN's (unofficial) API.

What generally happens to IA names when deprecated (or never merged, etc)? No strong preference here - just whatever you think is most relevant, given the topic and IA type.

@gautamkrishnar
Copy link
Collaborator

@laurenancona Yes IA pages would become something just like ghosts when the PR Is abandoned😄. Its not possible to anyone to delete it other than DDG employees.
Yes r_packages is a good name for this IA 👍.
Please don't forget to update the example queries when the IA is complete.

@moollaza
Copy link
Member

moollaza commented Jan 27, 2017

What generally happens to IA names when deprecated (or never merged, etc)? No strong preference here - just whatever you think is most relevant, given the topic and IA type.

@laurenancona @gautamkrishnar I can "ghost" IA pages, which relinquishes their ID. I'll ghost the cran page so you can use it here, or elsewhere as it's a good name ;)

@moollaza
Copy link
Member

@laurenancona I've updated the ID for your r_packages IA Page. It's now cran:

https://duck.co/ia/view/cran

@pjhampton
Copy link
Contributor Author

Hey @laurenancona!

Just in case you are interested or in need of some inspiration, I have done something similar with another package manager (OPAM) here: #775

@laurenancona
Copy link
Collaborator

Thanks, @pjhampton, I'll take a look!

I started a new job last month and needed to pause work briefly, but have made progress on the scraper with @ctufts.

@pjhampton
Copy link
Contributor Author

That's awesome! Congrats on the new job 😄

@pjhampton
Copy link
Contributor Author

Hey @laurenancona,

We've moved on from the programming mission. I'm not sure if you're still working on this currently? If you are we can reopen :)

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

No branches or pull requests

4 participants