pepijn-devries / CopernicusMarine

Subset and download marine data from EU Copernicus Marine Service Information. Import data on the oceans physical and biogeochemical state from Copernicus into R without the need of external software.
https://pepijn-devries.github.io/CopernicusMarine/
GNU General Public License v3.0
24 stars 3 forks source link

options instead of option? #20

Closed CongGao-CG closed 8 months ago

CongGao-CG commented 9 months ago

username Your Copernicus marine user name. Can be provided as option(CopernicusMarine_uid = "my_user_name"), or as argument here. password Your Copernicus marine password. Can be provided as option(CopernicusMarine_pwd = "my_password"), or as argument here.

I tried option(CopernicusMarine_pwd = "XXX"). It returned Error in option(CopernicusMarine_pwd = "XXX") : could not find function "option"

And options(CopernicusMarine_pwd = "XXX") worked for me.

version gave _
platform x86_64-apple-darwin17.0
arch x86_64
os darwin17.0
system x86_64, darwin17.0
status
major 4
minor 2.2
year 2022
month 10
day 31
svn rev 83211
language R
version.string R version 4.2.2 (2022-10-31) nickname Innocent and Trusting

pepijn-devries commented 9 months ago

Hi @CongGao-CG,

Thanks for your feedback. You are right. These are typos in the documentation. I will fix those in the next release.

pepijn-devries commented 8 months ago

Fixed with commit https://github.com/pepijn-devries/CopernicusMarine/commit/9bfe79421c309b174f0ecd8e9e4377529f9ba6eb