I'm having a script error issue with the script I'm currently using

'm currently working on a script, but unfortunately, when I run it, I get this error message.
Attaching package: ‘shinyjs’
The following object is masked from ‘package:shiny’:
runExample
The following objects are masked from ‘package:methods’:
removeClass, show
Registered S3 method overwritten by 'htmlwidgets':
method from
print.htmlwidget tools:rstudio
Registered S3 method overwritten by 'rmarkdown':
method from
print.paged_df
Registered S3 method overwritten by 'data.table':
method from
print.data.table
Attaching package: ‘Hmisc’
The following object is masked from ‘package:shinyjs’:
html
The following objects are masked from ‘package:base’:
format.pval, units
Attaching package: ‘dplyr’
The following objects are masked from ‘package:Hmisc’:
src, summarize
The following objects are masked from ‘package:stats’:
filter, lag
The following objects are masked from ‘package:base’:

intersect, setdiff, setequal, union

Registered S3 method overwritten by 'webshot2':
method from
print.webshot webshot
Attaching package: ‘webshot2’
The following objects are masked from ‘package:webshot’:
appshot, resize, rmdshot, shrink,
webshot
Attaching package: ‘DT’
The following objects are masked from ‘package:shiny’:
dataTableOutput, renderDataTable
Listening on http://127.0.0.1:4118

I'm currently working on a script, but unfortunately, when I run it, I get this error message.

Can anyone help me fix this problem?

1 Like

I see no error, only warnings.

1 Like

As @ HanOostdijk says you are not getting errors.

What seems to be happening is that you are loading various packages that have functions with the same name. The function in package_1 is being over–written by the function of the same name in package_2, and so on.

I think this link How to Interpret R Message: The following objects are masked may help you.

2 Likes

It looks like a classic case of a package not being loaded or a small typo in a variable name throwing everything off. Sometimes just clearing the environment and running the script from the top helps catch where the mismatch is happening. If you could share the specific error message you're getting, it would be much easier to pin down exactly which line is causing the headache. Hang in there - R errors are usually just one tiny fix away from working!

1 Like