You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
unfortunately while the CalculateAll function is running, I get an error when it tries to calculate pressures for each region: Calculating Pressures for each region... Error in ncol(p_matrix) : could not find function "ncol"
As usual, I tried to fix it, added the base package again and tried to figure out what is wrong, but I really can't figure it out. I even tried to add up the base library again but it still doesn't work. I have updated the repository with the changes I've made, if you want to take a look.
Do you have any ideas why this error is occuring?
This is actually due to a known issue in the tidyr package. But in the meantime, have improved the affected code in the ohicore package. This fix is currently in the @dev branch of ohicore but you can install that directly from GitHub.
So, you can do the following:
## uninstall ohicore
remove.packages("ohicore")
## reinstall ohicore from the dev branch:
source('install_ohicore.R') # note the @dev: `devtools::install_github('ohi-science/ohicore@dev')`## Calculate Scores
source('calculate_scores.R')
The text was updated successfully, but these errors were encountered:
Question from @rroxana10 from the UKI assessment:
This is actually due to a known issue in the
tidyr
package. But in the meantime, have improved the affected code in theohicore
package. This fix is currently in the@dev
branch of ohicore but you can install that directly from GitHub.So, you can do the following:
The text was updated successfully, but these errors were encountered: