Re: [R] function doesn't exists but still runs..... (akshay kulkarni)

2023-01-22 Thread akshay kulkarni
iller Sent: Friday, January 20, 2023 11:29 PM To: r-help@r-project.org ; akshay kulkarni ; Jorgen Harmse ; r-help@r-project.org ; williamwdun...@gmail.com Subject: Re: [R] function doesn't exists but still runs. (akshay kulkarni) This is not a "problem" ... it is a "fea

Re: [R] function doesn't exists but still runs..... (akshay kulkarni)

2023-01-20 Thread Jeff Newmiller
rted. >environment(package_function) is the private environment, so you can use it to >see all the private objects and everything in the ancestor environments. You >can repeat the trick to see private environments of packages you didn't >directly pull in. I think yo

Re: [R] function doesn't exists but still runs..... (akshay kulkarni)

2023-01-20 Thread akshay kulkarni
unlap To: akshay kulkarni Cc: R help Mailing list Subject: Re: [R] function doesn't exists but still runs. Message-ID: Content-Type: text/plain; charset="utf-8" Look into R's scoping rules. E.g., https://bookdown.org/rdpeng/rprogdatascience/scoping-rules-of-r.h

Re: [R] function doesn't exists but still runs.....

2023-01-20 Thread akshay kulkarni
From: Bill Dunlap Sent: Friday, January 20, 2023 5:32 AM To: akshay kulkarni Cc: R help Mailing list Subject: Re: [R] function doesn't exists but still runs. Look into R's scoping rules. E.g., https://bookdown.org/rdpeng/rprogdatascience/scoping-rules-of-r.html. * When a functio

Re: [R] function doesn't exists but still runs.....

2023-01-20 Thread akshay kulkarni
Re: [R] function doesn't exists but still runs. A little simpler answer than the others. Look at package Namespaces. When a package is created, the NAMESPACE file defines which functions in the package are exported (i.e. available for you to use), the other functions are "private" t

Re: [R] function doesn't exists but still runs.....

2023-01-20 Thread Greg Snow
A little simpler answer than the others. Look at package Namespaces. When a package is created, the NAMESPACE file defines which functions in the package are exported (i.e. available for you to use), the other functions are "private" to the package meaning that other functions in the package can

Re: [R] function doesn't exists but still runs..... (akshay kulkarni)

2023-01-20 Thread Jorgen Harmse via R-help
--- Message: 17 Date: Thu, 19 Jan 2023 16:02:31 -0800 From: Bill Dunlap To: akshay kulkarni Cc: R help Mailing list Subject: Re: [R] function doesn't exists but still runs. Message-ID: Content-Type: text/plain; charset="utf-8" Look into R's s

Re: [R] function doesn't exists but still runs.....

2023-01-19 Thread Bill Dunlap
Look into R's scoping rules. E.g., https://bookdown.org/rdpeng/rprogdatascience/scoping-rules-of-r.html. * When a function looks up a name, it looks it up in the environment in which the function was defined. * Functions in a package are generally defined in the package's environment (although so

[R] function doesn't exists but still runs.....

2023-01-19 Thread akshay kulkarni
dear members, I am using the RSelenium package which uses the function selenium() from the wdman package. The selenium function contains the function java_check at line 12. If I try to run it, it throws an error: > javapath <- java_check() Error in java_check() : co