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

Update htmltools from 0.5.3 to 0.5.4 in Google Colab with R #359

Open
yoshida-gisc opened this issue Jan 1, 2023 · 9 comments
Open

Update htmltools from 0.5.3 to 0.5.4 in Google Colab with R #359

yoshida-gisc opened this issue Jan 1, 2023 · 9 comments

Comments

@yoshida-gisc
Copy link

We would like to use the mapview package in Google Colab. However, even though the mapview package does not require htmltools 0.5.4, we faced the error message that ">= 0.5.4 is required".

image

Could we update the version of htmltools in Google Colab? Is it impossible to do it because the htmltools linked with a core IRkernel?

@yoshida-gisc yoshida-gisc changed the title Update htmltools form 0.5.3 to 0.5.4 in Google Colab with R Update htmltools from 0.5.3 to 0.5.4 in Google Colab with R Jan 3, 2023
@cpsievert
Copy link
Collaborator

This error will probably go away if you restart the R session (this sort of error can happen when you install.packages() after loading them (e.g., library(htmltools)))

@yoshida-gisc
Copy link
Author

yoshida-gisc commented Jan 3, 2023

I appreciate your suggestion. However, I cannot update the version of htmltools to 0.5.4 in Google Colab even though refresh the session ... .

This issue is also being discussed in r-spatial/mapview#447 .

@cpsievert
Copy link
Collaborator

However, I cannot update the version of htmltools to 0.5.4 in Google Colab even though refresh the session ... .

What output do you see when doing install.packages("htmltools") from a fresh R session?

@yoshida-gisc
Copy link
Author

yoshida-gisc commented Jan 3, 2023

install.package("htmltools") is successfully done. But, library(htmltools) is not ... . Some package dependencies may be problematic??

image

@cpsievert cpsievert reopened this Jan 3, 2023
@cpsievert
Copy link
Collaborator

Ahh, I see, Colab must load {repr} (and probably other packages) on startup which, as a consequence, will also load {htmltools}. Can you install.packages("htmltools") from a terminal?

@yoshida-gisc
Copy link
Author

So sorry. I am not sure how to install any R package from a terminal ... .

@schloerke
Copy link
Collaborator

Try running callr::r(function() { install.packages("htmltools") }) then refreshing your R session

@yoshida-gisc
Copy link
Author

Thank you so much for your comment. I have tried, but results seems to be the same ... .
May we need to wait for updating Google Colab to install the version 0.5.4 ... ??
image

@lander89
Copy link

Try running callr::r(function() { install.packages("htmltools") }) then refreshing your R session

THANK YOU! I had a similar issue and this solved it for me

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

4 participants