Skip to content

"Webmorph.org can't be reached" error when using functions like avg() #21

@yarenkoca

Description

@yarenkoca

Hi,

I can't run functions listed under "Webmorph" in the documentation like avg() - I get the following error:

Error in avg(processed) : 
  Webmorph.org can't be reached. Check if you are connected to the internet.

I'm guessing this is because webmorph.org is down as I can't access the website. Is there a workaround for being able to these functions until the website is back up?
Any help is appreciated!

The code I'm using is the one provided in the README.md file - so this is what I have:

```{r}
library(webmorphR)
# load 6 images from the smiling demo set
# devtools::install_github("debruine/webmorphR.stim")
original <- webmorphR.stim::load_stim_smiling("002|013|030|064|094|099") 
# resize and delineate the images (using Face++)
# procrustes align and crop them to 80% size
processed <- original |>
  resize(0.5) |>
  auto_delin(original, model = "fpp106") |>
  align(procrustes = TRUE) |>
  crop(width = 0.8, height = 0.8, y_off = 0)

# rename and save individual images
processed |>
  rename_stim(prefix = "aligned_") |>
  write_stim(dir = "stimuli/smiling")

# average faces (using webmorph.org)
avg <- avg(processed)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions