Hr icon indicating copy to clipboard operation
Hr copied to clipboard

Possible lack of Wikipedia access

Open Nelson-Gon opened this issue 5 years ago • 2 comments

Hello,

Nice work implementing this handy tech tip. I noticed that we get uppercase H from Wikipedia(in line with the tip's suggestion). However, it is possible that the user might not have access to Wikipedia for whatever reason. Could we provide an alternative function that achieves the same without necessarily going through Wikipedia.

Thanks once again. Nelson

Nelson-Gon avatar Dec 20 '19 08:12 Nelson-Gon

or without access to the Internet! 🤔 might be complex but maybe there's a workaround.

pr130 avatar Dec 20 '19 13:12 pr130

Well - this isn't too hard to solve, right? Wikipedia can be downloaded after all, and included with the package. The package can then first check whether there is an internet connection, and if not, use the local Wikipedia.

The only challenge I see is that to implement the search functionality of Wikipedia, R would have to run a webserver with PHP support. That's not super-trivial maybe, but surely proportional given the fact that without that functionality, the package can just easily break for a large proportion of users?

Matherion avatar Apr 01 '21 19:04 Matherion