Nonprofit-Open-Data-Collective / compensator

An R package for estimating compensation of nonprofit executives.
https://nonprofit-open-data-collective.github.io/compensator/
Other
0 stars 0 forks source link

Organizing References Page #16

Closed olbeck closed 1 year ago

olbeck commented 1 year ago

I tried to add the following code to the end of the _pkgdown.yml

reference:
  - title: Appraisal Process 
    contents:
    - calc_distance
    - dat_filtering
    - get_appraisal
    - get_geo_dist
    - get_geo_weights
    - get_mission_dist
    - get_mission_weights
    - get_org_values
    - get_salary_range
    - get_weights
    - predict_salary
    - select_sample
  - title: Data
    contents:
    - nonprofits
    - nonprofits.detailed
    - ntee.crosswalk
    - ntee.orig
    - state.abb52
    - state.dist.mat
  - title: NTEE Codes
    contents:
    - get_new_ntee
  - title: Miscellaneous
    contents:
    - dollarize

And I get the following error when building the reference page:

Screenshot 2023-05-05 at 11 58 08 AM

I tried adding @keywords in the roxygen comments of calc_distance.R but the same error happened.

I looked at the documentation for building the reference page here which says

Screenshot 2023-05-05 at 12 02 25 PM

I am using the exact function names. I do not know why this error is occurring.

olbeck commented 1 year ago

This error occurred because I misspelled the word distance in the calc_distance function. I had spelled it calc_distace. Need to fix throughout the package.

I found this by replacing - calc_distance with - starts_with("calc")