dstanley4 / apaTables

Development version of apaTables R package. Current stable version is on the CRAN.
http://dstanley4.github.io/apaTables/
Other
55 stars 13 forks source link

error in apa.reg.table ?? #13

Closed ebmtnprof closed 6 years ago

ebmtnprof commented 6 years ago

I am trying to use apa.reg.table using the CRAN version and am getting the following error message:

Error in if (number_predictors > 1) { : argument is of length zero

Given how simple the code is (below) perhaps there is a bug?

lm_output <- lm(wellbeing ~ esteem , data = data) apa.reg.table(lm_output, filename = "regression1.doc", table.number = 2)

dstanley4 commented 6 years ago

When did you download apaTables? This sounds related to a bug that was just fixed. A new version of apaTables should been posted on the CRAN within the last day or so.

I suggest: 1) Download from the CRAN again. See if it works. It might not have propagated to your server though. 2) If not, not try using the development version - instructions below.

install.packages("devtools") devtools::install_github("dstanley4/apaTables") library(apaTables)

Also - it may be an issue if your underlying tidyverse packages are not the most recent versions. If you use RStudio, I suggest that you use the update feature on the lower-right panel to update the packages on your machine. That might fix it too - or combined with above.

If you view the solved issues for apaTables you will see how apaTables was broken new users because when they installed they obtained the most recent versions of tidyverse packags. My development machine was not using the most recent versions of all the tidyverse packages - so everything worked fine for me but not new users. It's possible by fixing the issue for new users I may have created problems with users with older versions of the tidyverse - the solution is updating installed packages. (Note install.packages("tidyverse") won't update them.

Let me know of it goes.

ebmtnprof commented 6 years ago

Thanks so much for the rapid reply. Installing the newest version from CRAN worked. And thanks for providing such a great package!!! It is really helpful.... Cheers, Emily

On Sat, Sep 1, 2018 at 6:53 PM David Stanley notifications@github.com wrote:

When did you download apaTables? This sounds related to a bug that was just fixed. A new version of apaTables should been posted on the CRAN within the last day or so.

I suggest:

  1. Download from the CRAN again. See if it works. It might not have propagated to your server though.
  2. If not, not try using the development version - instructions below.

install.packages("devtools") devtools::install_github("dstanley4/apaTables") library(apaTables)

Let me know!

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/dstanley4/apaTables/issues/13#issuecomment-417899202, or mute the thread https://github.com/notifications/unsubscribe-auth/AkNSOp1MAuL4MMKa6qW_fjd-nCw8Dwi8ks5uWzoCgaJpZM4WWaLi .

--

Emily A. Butler

Associate Professor & Graduate Director Family Studies and Human Development College of Agriculture & Life Sciences University of Arizona Tucson, AZ, 85721-0033