Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

library(tidyverse) fails on pre-1.1 versions of RStudio due to lack of getThemeInfo #83

Closed
nicknimchuk opened this issue Nov 8, 2017 · 5 comments

Comments

@nicknimchuk
Copy link

@nicknimchuk nicknimchuk commented Nov 8, 2017

When loading the tidyverse with library(tidyverse) in RStudio 1.0.153, the following error occurs:

Error: package or namespace load failed for ‘tidyverse’:
 .onAttach failed in attachNamespace() for 'tidyverse', details:
  call: NULL
  error: Function getThemeInfo not found in RStudio

Working backwards, the error occurs in text_col when it calls getThemeInfo. The function checks to ensure that rstudioapi is available, but not whether the version in use has getThemeInfo available. This can be isolated as:

tidyverse:::text_col("Hi")
# Error: Function getThemeInfo not found in RStudio

Running the command on the same computer in the latest release of RStudio does not generate an error.

@tiernanmartin
Copy link

@tiernanmartin tiernanmartin commented Nov 8, 2017

I'm experiencing the same error using RStudio Server v.1.1.355

@tiernanmartin
Copy link

@tiernanmartin tiernanmartin commented Nov 8, 2017

This fixed it for me:

install.packages("crayon")

As suggested here

@hadley hadley closed this as completed in a69a441 Nov 8, 2017
@hadley
Copy link
Member

@hadley hadley commented Nov 8, 2017

@tiernanmartin I think that's a different problem, but it's also fix in the dev version

@JackBoult
Copy link

@JackBoult JackBoult commented Mar 2, 2018

After:
install.packages("tidyverse")
tidyverse 1.1.1 1.2.1 FALSE
Warning in install.packages :
running command '"C:/PROGRA1/R/R-321.4/bin/x64/R" CMD INSTALL -l "C:\Users\User\Documents\R\win-library\3.2" C:\Users\User\AppData\Local\Temp\RtmpGQjwZM/downloaded_packages/tidyverse_1.2.1.tar.gz' had status 1
Warning in install.packages :
installation of package ‘tidyverse’ had non-zero exit status

I get:

library(tidyverse)
Error in library(tidyverse) : there is no package called ‘tidyverse’

...this problem is only on my home laptop (my work computer runs the same code fine).

What is going on?

@BrownAlpine
Copy link

@BrownAlpine BrownAlpine commented Apr 12, 2018

hi, Rstudio Version 1.1.423

After installing R3.4.4 (2018-03-15) I have a similar problem, I get this:
library(tidyverse)
Error: package or namespace load failed for ‘tidyverse’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]):
there is no package called ‘tidyr’"

Rstudio Version 1.1.423

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants