Closed annasyoung closed 4 years ago
Can you create a reprex with session info to show the package versions you are using? When I use the CRAN version of lifecycle, I don't see that error:
library(qualtRics)
fetch_survey("SV_56icaa9YAafpAqx", force_request = TRUE)
#> | | | 0% | |======================================================================| 100%
#> Parsed with column specification:
#> cols(
#> .default = col_character(),
#> StartDate = col_datetime(format = ""),
#> EndDate = col_datetime(format = ""),
#> Progress = col_double(),
#> `Duration (in seconds)` = col_double(),
#> Finished = col_logical(),
#> RecordedDate = col_datetime(format = ""),
#> Q1.2_10_TEXT = col_logical(),
#> Q3.13 = col_double(),
#> SolutionRevision = col_double(),
#> `Q3.8 - Parent Topics` = col_logical(),
#> `Q3.8 - Sentiment Polarity` = col_double(),
#> `Q3.8 - Sentiment Score` = col_double(),
#> `Q3.8 - Topic Sentiment Label` = col_logical(),
#> `Q3.8 - Topic Sentiment Score` = col_logical()
#> )
#> See spec(...) for full column specifications.
#> # A tibble: 17 x 34
#> StartDate EndDate Status Progress `Duration (in s…
#> <dttm> <dttm> <chr> <dbl> <dbl>
#> 1 2020-02-11 03:44:39 2020-02-11 03:45:47 Surve… 100 67
#> 2 2020-02-11 04:08:16 2020-02-11 04:10:29 IP Ad… 100 133
#> 3 2020-02-11 04:08:21 2020-02-11 04:11:09 IP Ad… 100 168
#> 4 2020-02-11 04:25:59 2020-02-11 04:28:17 IP Ad… 100 137
#> 5 2020-02-11 05:18:29 2020-02-11 05:20:17 IP Ad… 100 107
#> 6 2020-02-11 05:57:47 2020-02-11 06:00:17 IP Ad… 100 149
#> 7 2020-02-11 06:39:05 2020-02-11 06:41:48 IP Ad… 100 163
#> 8 2020-02-11 06:46:53 2020-02-11 06:48:56 IP Ad… 100 122
#> 9 2020-02-11 10:30:40 2020-02-11 10:33:49 IP Ad… 100 188
#> 10 2020-02-11 13:15:40 2020-02-11 13:17:36 IP Ad… 100 115
#> 11 2020-02-12 00:59:38 2020-02-12 01:01:13 IP Ad… 100 94
#> 12 2020-02-13 16:41:14 2020-02-13 16:46:31 IP Ad… 100 316
#> 13 2020-02-13 23:24:36 2020-02-13 23:27:25 IP Ad… 100 168
#> 14 2020-02-11 04:05:27 2020-02-11 04:07:16 IP Ad… 15 108
#> 15 2020-02-13 16:24:45 2020-02-13 16:25:09 IP Ad… 15 24
#> 16 2020-02-24 21:08:13 2020-02-24 21:09:22 IP Ad… 100 68
#> 17 2020-03-04 22:35:48 2020-03-04 22:36:12 IP Ad… 15 23
#> # … with 29 more variables: Finished <lgl>, RecordedDate <dttm>,
#> # ResponseId <chr>, DistributionChannel <chr>, UserLanguage <chr>,
#> # Q1.2 <ord>, Q1.2_10_TEXT <lgl>, Q2.1 <ord>, Q3.13_NPS_GROUP <chr>,
#> # Q3.13 <dbl>, Q3.2 <ord>, Q3.3 <chr>, Q3.4 <chr>, Q3.7 <ord>, Q3.8 <chr>,
#> # Q37 <ord>, Q35_1 <chr>, Q35_2 <chr>, Q35_7 <chr>, Q35_7_TEXT <chr>,
#> # Q4.1 <ord>, SolutionRevision <dbl>, `Q3.8 - Parent Topics` <lgl>, `Q3.8 -
#> # Sentiment Polarity` <dbl>, `Q3.8 - Sentiment Score` <dbl>, `Q3.8 -
#> # Sentiment` <chr>, `Q3.8 - Topic Sentiment Label` <lgl>, `Q3.8 - Topic
#> # Sentiment Score` <lgl>, `Q3.8 - Topics` <chr>
Created on 2020-06-19 by the reprex package (v0.3.0.9001)
Hi Julia,
Thanks for your fast reply! Maybe it's just my computer then. Here is the reprex and session info.
Best wishes, Anna
[image: Screen Shot 2020-06-19 at 1.14.24 PM.png]
On Fri, Jun 19, 2020 at 12:30 PM Julia Silge notifications@github.com wrote:
Can you create a reprex https://www.tidyverse.org/help/ with session info https://reprex.tidyverse.org/ to show the package versions you are using? When I use the CRAN version of lifecycle, I don't see that error:
library(qualtRics)
fetch_survey("SV_56icaa9YAafpAqx", force_request = TRUE)
> | | | 0% | |======================================================================| 100%
> Parsed with column specification:
> cols(
> .default = col_character(),
> StartDate = col_datetime(format = ""),
> EndDate = col_datetime(format = ""),
> Progress = col_double(),
>
Duration (in seconds)
= col_double(),> Finished = col_logical(),
> RecordedDate = col_datetime(format = ""),
> Q1.2_10_TEXT = col_logical(),
> Q3.13 = col_double(),
> SolutionRevision = col_double(),
>
Q3.8 - Parent Topics
= col_logical(),>
Q3.8 - Sentiment Polarity
= col_double(),>
Q3.8 - Sentiment Score
= col_double(),>
Q3.8 - Topic Sentiment Label
= col_logical(),>
Q3.8 - Topic Sentiment Score
= col_logical()> )
> See spec(...) for full column specifications.
> # A tibble: 17 x 34
> StartDate EndDate Status Progress `Duration (in s…
>
> 1 2020-02-11 03:44:39 2020-02-11 03:45:47 Surve… 100 67
> 2 2020-02-11 04:08:16 2020-02-11 04:10:29 IP Ad… 100 133
> 3 2020-02-11 04:08:21 2020-02-11 04:11:09 IP Ad… 100 168
> 4 2020-02-11 04:25:59 2020-02-11 04:28:17 IP Ad… 100 137
> 5 2020-02-11 05:18:29 2020-02-11 05:20:17 IP Ad… 100 107
> 6 2020-02-11 05:57:47 2020-02-11 06:00:17 IP Ad… 100 149
> 7 2020-02-11 06:39:05 2020-02-11 06:41:48 IP Ad… 100 163
> 8 2020-02-11 06:46:53 2020-02-11 06:48:56 IP Ad… 100 122
> 9 2020-02-11 10:30:40 2020-02-11 10:33:49 IP Ad… 100 188
> 10 2020-02-11 13:15:40 2020-02-11 13:17:36 IP Ad… 100 115
> 11 2020-02-12 00:59:38 2020-02-12 01:01:13 IP Ad… 100 94
> 12 2020-02-13 16:41:14 2020-02-13 16:46:31 IP Ad… 100 316
> 13 2020-02-13 23:24:36 2020-02-13 23:27:25 IP Ad… 100 168
> 14 2020-02-11 04:05:27 2020-02-11 04:07:16 IP Ad… 15 108
> 15 2020-02-13 16:24:45 2020-02-13 16:25:09 IP Ad… 15 24
> 16 2020-02-24 21:08:13 2020-02-24 21:09:22 IP Ad… 100 68
> 17 2020-03-04 22:35:48 2020-03-04 22:36:12 IP Ad… 15 23
> # … with 29 more variables: Finished
, RecordedDate , > # ResponseId
, DistributionChannel , UserLanguage , > # Q1.2
, Q1.2_10_TEXT , Q2.1 , Q3.13_NPS_GROUP , > # Q3.13
, Q3.2 , Q3.3 , Q3.4 , Q3.7 , Q3.8 , > # Q37
, Q35_1 , Q35_2 , Q35_7 , Q35_7_TEXT , > # Q4.1
, SolutionRevision , Q3.8 - Parent Topics
, `Q3.8 - > # Sentiment Polarity
<dbl>,
Q3.8 - Sentiment Score<dbl>,
Q3.8 -> # Sentiment
<chr>,
Q3.8 - Topic Sentiment Label<lgl>,
Q3.8 - Topic> # Sentiment Score
<lgl>,
Q3.8 - Topics`Created on 2020-06-19 by the reprex package https://reprex.tidyverse.org (v0.3.0.9001) Session info
sessioninfo::session_info()
> ─ Session info ───────────────────────────────────────────────────────────────
> setting value
> version R version 4.0.0 (2020-04-24)
> os macOS Mojave 10.14.6
> system x86_64, darwin17.0
> ui X11
> language (EN)
> collate en_US.UTF-8
> ctype en_US.UTF-8
> tz America/Denver
> date 2020-06-19
>
> ─ Packages ───────────────────────────────────────────────────────────────────
> package * version date lib source
> assertthat 0.2.1 2019-03-21 [1] CRAN (R 4.0.0)
> backports 1.1.8 2020-06-17 [1] CRAN (R 4.0.0)
> cli 2.0.2 2020-02-28 [1] CRAN (R 4.0.0)
> crayon 1.3.4 2017-09-16 [1] CRAN (R 4.0.0)
> curl 4.3 2019-12-02 [1] CRAN (R 4.0.0)
> digest 0.6.25 2020-02-23 [1] CRAN (R 4.0.0)
> dplyr 1.0.0 2020-05-29 [1] CRAN (R 4.0.0)
> ellipsis 0.3.1 2020-05-15 [1] CRAN (R 4.0.0)
> evaluate 0.14 2019-05-28 [1] CRAN (R 4.0.0)
> fansi 0.4.1 2020-01-08 [1] CRAN (R 4.0.0)
> fs 1.4.1 2020-04-04 [1] CRAN (R 4.0.0)
> generics 0.0.2 2018-11-29 [1] CRAN (R 4.0.0)
> glue 1.4.1 2020-05-13 [1] CRAN (R 4.0.0)
> highr 0.8 2019-03-20 [1] CRAN (R 4.0.0)
> hms 0.5.3 2020-01-08 [1] CRAN (R 4.0.0)
> htmltools 0.4.0 2019-10-04 [1] CRAN (R 4.0.0)
> httr 1.4.1 2019-08-05 [1] CRAN (R 4.0.0)
> insight 0.8.5 2020-06-08 [1] CRAN (R 4.0.0)
> jsonlite 1.6.1 2020-02-02 [1] CRAN (R 4.0.0)
> knitr 1.28 2020-02-06 [1] CRAN (R 4.0.0)
> lifecycle 0.2.0 2020-03-06 [1] CRAN (R 4.0.0)
> magrittr 1.5 2014-11-22 [1] CRAN (R 4.0.0)
> pillar 1.4.4 2020-05-05 [1] CRAN (R 4.0.0)
> pkgconfig 2.0.3 2019-09-22 [1] CRAN (R 4.0.0)
> purrr 0.3.4 2020-04-17 [1] CRAN (R 4.0.0)
> qualtRics * 3.1.3 2020-05-22 [1] CRAN (R 4.0.0)
> R6 2.4.1 2019-11-12 [1] CRAN (R 4.0.0)
> Rcpp 1.0.4.6 2020-04-09 [1] CRAN (R 4.0.0)
> readr 1.3.1 2018-12-21 [1] CRAN (R 4.0.0)
> reprex 0.3.0.9001 2020-06-08 [1] Github (tidyverse/reprex@d898823)
> rlang 0.4.6.9000 2020-06-17 [1] Github (r-lib/rlang@7f0c363)
> rmarkdown 2.3 2020-06-18 [1] CRAN (R 4.0.0)
> rstudioapi 0.11 2020-02-07 [1] CRAN (R 4.0.0)
> sessioninfo 1.1.1 2018-11-05 [1] CRAN (R 4.0.0)
> sjlabelled 1.1.5 2020-05-25 [1] CRAN (R 4.0.0)
> snakecase 0.11.0 2019-05-25 [1] CRAN (R 4.0.0)
> stringi 1.4.6 2020-02-17 [1] CRAN (R 4.0.0)
> stringr 1.4.0 2019-02-10 [1] CRAN (R 4.0.0)
> styler 1.3.2 2020-02-23 [1] CRAN (R 4.0.0)
> tibble 3.0.1 2020-04-20 [1] CRAN (R 4.0.0)
> tidyselect 1.1.0 2020-05-11 [1] CRAN (R 4.0.0)
> utf8 1.1.4 2018-05-24 [1] CRAN (R 4.0.0)
> vctrs 0.3.1.9000 2020-06-17 [1] Github (r-lib/vctrs@833956a)
> withr 2.2.0 2020-04-20 [1] CRAN (R 4.0.0)
> xfun 0.14 2020-05-20 [1] CRAN (R 4.0.0)
> yaml 2.2.1 2020-02-01 [1] CRAN (R 4.0.0)
>
> [1] /Library/Frameworks/R.framework/Versions/4.0/Resources/library
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ropensci/qualtRics/issues/178#issuecomment-646731822, or unsubscribe https://github.com/notifications/unsubscribe-auth/AL6LYVC3T725L5IYU7SP4YDRXOHBRANCNFSM4OC3RO2A .
If you visit this issue on GitHub, you'll notice that there isn't any image, and screenshots are not a great way to share code and results anyway. If you haven't used a reprex before, check out this article that explains what it is and how to make one.
Here's the code [without my account info]:
require(qualtRics)
#> Loading required package: qualtRics
#> Warning: package 'qualtRics' was built under R version 3.6.2
qualtrics_api_credentials(
api_key = "xx",
base_url = "xx",
overwrite = F, install = F)
#> To install your credentials for use in future sessions, run this function with `install = TRUE`.
baseline_survey = fetch_survey(surveyID="xx", force_request=T)
#> Error: 'is_present' is not an exported object from 'namespace:lifecycle'
Created on 2020-06-19 by the reprex package (v0.3.0)
Session info
setting value
version R version 3.6.1 (2019-07-05)
os macOS Catalina 10.15.5
system x86_64, darwin15.6.0
ui RStudio
language (EN)
collate en_US.UTF-8
ctype en_US.UTF-8
tz America/New_York
date 2020-06-19
─ Packages ─────────────────────────────────────────────────────────────
package * version date lib source
assertthat 0.2.1 2019-03-21 [1] CRAN (R 3.6.0)
backports 1.1.5 2019-10-02 [1] CRAN (R 3.6.0)
boot 1.3-22 2019-04-02 [1] CRAN (R 3.6.1)
callr 3.4.3 2020-03-28 [1] CRAN (R 3.6.2)
cli 1.1.0 2019-03-19 [1] CRAN (R 3.6.0)
clipr 0.7.0 2019-07-23 [1] CRAN (R 3.6.0)
crayon 1.3.4 2017-09-16 [1] CRAN (R 3.6.0)
digest 0.6.22 2019-10-21 [1] CRAN (R 3.6.0)
dplyr 0.8.3 2019-07-04 [1] CRAN (R 3.6.0)
evaluate 0.14 2019-05-28 [1] CRAN (R 3.6.0)
forcats 0.4.0 2019-02-17 [1] CRAN (R 3.6.0)
fs 1.4.1 2020-04-04 [1] CRAN (R 3.6.2)
glue 1.3.1 2019-03-12 [1] CRAN (R 3.6.0)
haven 2.2.0 2019-11-08 [1] CRAN (R 3.6.0)
hms 0.5.2 2019-10-30 [1] CRAN (R 3.6.0)
htmltools 0.4.0 2019-10-04 [1] CRAN (R 3.6.0)
insight 0.8.1 2020-02-02 [1] CRAN (R 3.6.0)
jsonlite 1.6 2018-12-07 [1] CRAN (R 3.6.0)
knitr 1.26 2019-11-12 [1] CRAN (R 3.6.0)
lattice 0.20-38 2018-11-04 [1] CRAN (R 3.6.1)
lifecycle * 0.1.0 2019-08-01 [1] CRAN (R 3.6.0)
lme4 1.1-21 2019-03-05 [1] CRAN (R 3.6.0)
magrittr 1.5 2014-11-22 [1] CRAN (R 3.6.0)
MASS 7.3-51.4 2019-03-31 [1] CRAN (R 3.6.1)
Matrix 1.2-17 2019-03-22 [1] CRAN (R 3.6.1)
minqa 1.2.4 2014-10-09 [1] CRAN (R 3.6.0)
nlme 3.1-140 2019-05-12 [1] CRAN (R 3.6.1)
nloptr 1.2.1 2018-10-03 [1] CRAN (R 3.6.0)
pillar 1.4.2 2019-06-29 [1] CRAN (R 3.6.0)
pkgconfig 2.0.3 2019-09-22 [1] CRAN (R 3.6.0)
processx 3.4.2 2020-02-09 [1] CRAN (R 3.6.0)
ps 1.3.3 2020-05-08 [1] CRAN (R 3.6.2)
purrr 0.3.3 2019-10-18 [1] CRAN (R 3.6.0)
qualtRics * 3.1.3 2020-05-22 [1] CRAN (R 3.6.2)
R6 2.4.1 2019-11-12 [1] CRAN (R 3.6.0)
Rcpp 1.0.3 2019-11-08 [1] CRAN (R 3.6.0)
readr 1.3.1 2018-12-21 [1] CRAN (R 3.6.0)
reprex * 0.3.0 2019-05-16 [1] CRAN (R 3.6.0)
rlang 0.4.1 2019-10-24 [1] CRAN (R 3.6.0)
rmarkdown 2.3 2020-06-18 [1] CRAN (R 3.6.1)
sessioninfo * 1.1.1 2018-11-05 [1] CRAN (R 3.6.0)
sjlabelled 1.1.1 2019-09-13 [1] CRAN (R 3.6.0)
stringi 1.4.3 2019-03-12 [1] CRAN (R 3.6.0)
stringr * 1.4.0 2019-02-10 [1] CRAN (R 3.6.0)
tibble 2.1.3 2019-06-06 [1] CRAN (R 3.6.0)
tidyselect 0.2.5 2018-10-11 [1] CRAN (R 3.6.0)
vctrs 0.2.0 2019-07-05 [1] CRAN (R 3.6.0)
whisker 0.4 2019-08-28 [1] CRAN (R 3.6.0)
withr 2.1.2 2018-03-15 [1] CRAN (R 3.6.0)
xfun 0.11 2019-11-12 [1] CRAN (R 3.6.0)
zeallot 0.1.0 2018-01-28 [1] CRAN (R 3.6.0)
[1] /Library/Frameworks/R.framework/Versions/3.6/Resources/library
OK, you need to update to lifecycle 0.2.0. Notice that I have lifecycle 0.2.0 from CRAN but you have lifecycle 0.1.0. You probably need to run update.packages()
.
That worked, thank you so much! (Weird because my colleague and I had just newly installed lifecycle in R this month.)
Hello,
When I try to call fetch_survey(), I get an error message: "Error: 'is_present' is not an exported object from 'namespace:lifecycle'".
I think this is because the function is_present() no longer works in the lifecycle package. When I remove the following lines from the fetch_survey() code, it works okay:
if (lifecycle::is_present(last_response)) { lifecycle::deprecate_warn("3.1.2", "fetch_survey(last_response = )") }
Thanks in advance for your help! Anna