This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#- script para hacer un resize de las imagenes de los posts | |
my_thumbnail <- here::here("posts", "thumbnails", "thumbnail_01.png") | |
img <- magick::image_read(my_thumbnail) | |
img_resized <- img |> magick::image_scale("740x426!") | |
#- guardo la foto reescalada a 640x427 | |
magick::image_write(img_resized, my_thumbnail) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
my_fun <- function(aa, bb){ | |
aa + bb | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(httr) | |
library(RCurl) | |
library(XML) | |
df <- data.frame(artist = c('Led Zeppellin', 'Adele'), song = c('Rock´n roll', 'Hello'), stringsAsFactors = F) | |
make.querrye <- function(xx) { | |
names_ok <- gsub(" ", "&", xx) | |
names_ok2 <- paste("\'", names_ok, "\'", sep = '') | |
querrye <- paste("http://api.chartlyrics.com/apiv1.asmx/SearchLyricDirect?artist=", names_ok[1],"&song=", names_ok[2], sep='') |