Ironholds / WikidataR

An R package for the Wikidata API
Other
53 stars 14 forks source link

Installation failed #5

Closed chgrl closed 9 years ago

chgrl commented 9 years ago

Hi there,

just stumbled upon your started project. Still want to loop me in? I am definitely too short in time to push rwikidata by myself. So let me know how I can help...

Trying to review WikidataR the installation process ran into an error:

devtools::install_github("ironholds/WikidataR")
## Installing github repo WikidataR/master from ironholds
## Downloading master.zip from https://github.com/ironholds/WikidataR/archive/master.zip
## Installing package from /var/folders/jg/kb1nv7qs0_39r_l9hh4jdxyc0000gn/T//RtmpqT7Run/master.zip
## arguments 'minimized' and 'invisible' are for Windows only
## Installing WikidataR
## '/Library/Frameworks/R.framework/Resources/bin/R' --vanilla CMD build  \ '/private/var/folders/jg/kb1nv7qs0_39r_l9hh4jdxyc0000gn/T/RtmpqT7Run/devtools2a521a2a8232/WikidataR-master'  \
##  --no-manual --no-resave-data 

## * checking for file '/private/var/folders/jg/kb1nv7qs0_39r_l9hh4jdxyc0000gn/T/RtmpqT7Run/devtools2a521a2a8232/WikidataR-master/DESCRIPTION' ... OK
## * preparing 'WikidataR':
## * checking DESCRIPTION meta-information ... OK
## * installing the package to build vignettes
##       -----------------------------------
## * installing *source* package 'WikidataR' ...
## ** R
## ** preparing package for lazy loading
## Error : object 'page_content' is not exported by 'namespace:WikipediR'
## ERROR: lazy loading failed for package 'WikidataR'
## * removing '/private/var/folders/jg/kb1nv7qs0_39r_l9hh4jdxyc0000gn/T/RtmpKG4a3H/Rinst2be686ec522/WikidataR'
##       -----------------------------------
## ERROR: package installation failed
## Error: Command failed (1)

It says "object 'page_content' is not exported by 'namespace:WikipediR'". I checked the WikipediR namespace and it's ok. Any idea what causes the error?

Ironholds commented 9 years ago

Huh; weird! I'll try to dig into it and patch this evening, if that's okay? (Honestly the package needs a total revamp, but I'm waiting for the new RESTful API interface to be around before I dig into it)

Ironholds commented 9 years ago

Just to be clear are you using the github version or the CRAN version?

chgrl commented 9 years ago

devtools::install_github("ironholds/WikidataR")

Ironholds commented 9 years ago

Gotcha. And the WikipediR version is..?

chgrl commented 9 years ago

WikipediR version is 1.1.0

My sessionInfo():

R version 3.1.1 (2014-07-10)
Platform: x86_64-apple-darwin13.1.0 (64-bit)

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
character(0)

other attached packages:
[1] WikipediR_1.1.0

loaded via a namespace (and not attached):
 [1] base_3.1.1      datasets_3.1.1  devtools_1.5    digest_0.6.4    evaluate_0.5.5 
 [6] formatR_0.10    graphics_3.1.1  grDevices_3.1.1 httr_0.4        knitr_1.6      
[11] memoise_0.2.1   methods_3.1.1   parallel_3.1.1  RCurl_1.95-4.1  stats_3.1.1    
[16] stringr_0.6.2   tools_3.1.1     utils_3.1.1     whisker_0.3-2 

Oh - time to update R...

chgrl commented 9 years ago

R 3.2.0 still fails.

Ironholds commented 9 years ago

Hmn; looks like the problem is in the CRAN version of WikipediR; I hadn't bumped the new version up there yet. Okay, this can be currently worked around with:

devtools::install_github("ironholds/WikipediR")
devtools::install_github("ironholds/WikidataR")

But I'll throw the patched version of WikipediR into CRAN now.

Ironholds commented 9 years ago

@chgrl Uwe tells me the new version is now live on CRAN! See if that works better for ya?

chgrl commented 9 years ago

Thanks, works fine now. Since the Mac binary is not yet built on CRAN, I installed from GitHub.

Ironholds commented 9 years ago

Cool; thanks for the report!