seancarmody / ngramr

R package to query the Google Ngram Viewer
Other
48 stars 9 forks source link

Could not get ng <- ngram(c("hacker", "programmer"), year_start = 1950) example to work #32

Closed AncientZygote closed 3 years ago

AncientZygote commented 3 years ago

I just posted the following over at your blog , but will repeat here in case you don't check that frequently (I am not online regularly myself):

I just installed.packages("ngramr") and tried to execute the example you gave at Github, i.e., ng <- ngram(c("hacker", "programmer"), year_start = 1950) R complains that Error: 'relocate' is not an exported object from 'namespace:dplyr' I have dplyr and went ahead and tried library(dplyr) and re-execute the example line, but got the same error. I have just started using R so may be missing some obvious solution about making the desired object "relocate" available. However, off the top of my head, it seems "relocate" would need a reference prepend of dplry or the like.

Looking forward to seeing this work! I have been doing Ngram and other linguistic work lately (whew---the Google Million raw datasets are really bad, full of foreign unicode, freq counts for all caps of same low case words, a real pain to use for any serious work).

Am running R version 3.6.1 (2019-07-05) on Ubuntu Linux 18.04 on a Dell Precision laptop. I have all the packages listed in your August 24, 2020 document: Imports httr, rlang, RCurl, dplyr, cli, tibble, tidyr, rjson, stringr, ggplot2, scales, xml2, textutils, lifecycle Thanks, Dalton

seancarmody commented 3 years ago

I’ll take a look...

Sean. On 13 May 2021, 2:39 AM +1000, AncientZygote @.***>, wrote:

I just posted the following over at your blog , but will repeat here in case you don't check that frequently (I am not online regularly myself): I just installed.packages("ngramr") and tried to execute the example you gave at Github, i.e., ng <- ngram(c("hacker", "programmer"), year_start = 1950) R complains that Error: 'relocate' is not an exported object from 'namespace:dplyr' I have dplyr and went ahead and tried library(dplyr) and re-execute the example line, but got the same error. I have just started using R so may be missing some obvious solution about making the desired object "relocate" available. However, off the top of my head, it seems "relocate" would need a reference prepend of dplry or the like. Looking forward to seeing this work! I have been doing Ngram and other linguistic work lately (whew---the Google Million raw datasets are really bad, full of foreign unicode, freq counts for all caps of same low case words, a real pain to use for any serious work). Am running R version 3.6.1 (2019-07-05) on Ubuntu Linux 18.04 on a Dell Precision laptop. I have all the packages listed in your August 24, 2020 document: Imports httr, rlang, RCurl, dplyr, cli, tibble, tidyr, rjson, stringr, ggplot2, scales, xml2, textutils, lifecycle Thanks, Dalton — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

seancarmody commented 3 years ago

Dalton,

What version of dplyr do you have? I think it will need at least 1.0.3. You can check by running sessionInfo().

Sean.

On Thu, May 13, 2021 at 2:39 AM AncientZygote @.***> wrote:

I just posted the following over at your blog , https://www.stubbornmule.net but will repeat here in case you don't check that frequently (I am not online regularly myself):

I just installed.packages("ngramr") and tried to execute the example you gave at Github, i.e., ng <- ngram(c("hacker", "programmer"), year_start = 1950) R complains that Error: 'relocate' is not an exported object from 'namespace:dplyr' I have dplyr and went ahead and tried library(dplyr) and re-execute the example line, but got the same error. I have just started using R so may be missing some obvious solution about making the desired object "relocate" available. However, off the top of my head, it seems "relocate" would need a reference prepend of dplry or the like.

Looking forward to seeing this work! I have been doing Ngram and other linguistic work lately (whew---the Google Million raw datasets are really bad, full of foreign unicode, freq counts for all caps of same low case words, a real pain to use for any serious work).

Am running R version 3.6.1 (2019-07-05) on Ubuntu Linux 18.04 on a Dell Precision laptop. I have all the packages listed in your August 24, 2020 document: Imports httr, rlang, RCurl, dplyr, cli, tibble, tidyr, rjson, stringr, ggplot2, scales, xml2, textutils, lifecycle Thanks, Dalton

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/seancarmody/ngramr/issues/32, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAFVWL3G2AGARBMAZPI73DTNKVN3ANCNFSM44Y6VVHQ .

-- Sean Carmody Twitter: http://twitter.com/seancarmody Blog: The Stubborn Mule

AncientZygote commented 3 years ago

I just installed.packages("tidyverse") to pick up the latest dplyr dplyr_1.0.6 (prior to that update I had dplyr_0.8.0.1 using sessionInfo). That did the trick! Thanks!

Dalton, What version of dplyr do you have? I think it will need at least 1.0.3. You can check by running sessionInfo(). Sean. On Thu, May 13, 2021 at 2:39 AM AncientZygote @.***> wrote: I just posted the following over at your blog , https://www.stubbornmule.net but will repeat here in case you don't check that frequently (I am not online regularly myself): I just installed.packages("ngramr") and tried to execute the example you gave at Github, i.e., ng <- ngram(c("hacker", "programmer"), year_start = 1950) R complains that Error: 'relocate' is not an exported object from 'namespace:dplyr' I have dplyr and went ahead and tried library(dplyr) and re-execute the example line, but got the same error. I have just started using R so may be missing some obvious solution about making the desired object "relocate" available. However, off the top of my head, it seems "relocate" would need a reference prepend of dplry or the like. Looking forward to seeing this work! I have been doing Ngram and other linguistic work lately (whew---the Google Million raw datasets are really bad, full of foreign unicode, freq counts for all caps of same low case words, a real pain to use for any serious work). Am running R version 3.6.1 (2019-07-05) on Ubuntu Linux 18.04 on a Dell Precision laptop. I have all the packages listed in your August 24, 2020 document: Imports httr, rlang, RCurl, dplyr, cli, tibble, tidyr, rjson, stringr, ggplot2, scales, xml2, textutils, lifecycle Thanks, Dalton — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#32>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAFVWL3G2AGARBMAZPI73DTNKVN3ANCNFSM44Y6VVHQ . -- Sean Carmody Twitter: http://twitter.com/seancarmody Blog: The Stubborn Mule

Th

seancarmody commented 3 years ago

Glad to hear it.

Sean. On 13 May 2021, 11:37 PM +1000, AncientZygote @.***>, wrote:

Closed #32. — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.