Re: [R] Confirmation of no Electronic Communication functionality

2024-12-13 Thread Steven Ellis
Hi Edward,

R can indeed initiate electronic communication, e.g. by downloading new
libraries (`install.packages()`). You may be best off using a container.

Steven

On Fri, Dec 13, 2024, 10:25 AM Edward Woo via R-help 
wrote:

> Hi,
>
> I am trying to download R version 3.6.1 onto my company computer and need
> an email confirming that r does not include any electronic communication
> functionality within the program.
>
> Thank you very much!
>
> Best,
> Edward Woo
>
>
> Edward Woo
> Municipals Securities Group
> Jefferies LLC
> 520 Madison Avenue, 3rd Floor
> New York, NY 10022
> Phone: 212-708-2958
> e...@jefferies.com
>
>
> Jefferies archives and monitors outgoing and incoming e-mail. The contents
> of this email, including any attachments, are confidential to the ordinary
> user of the email address to which it was addressed. If you are not the
> addressee of this email you may not copy, forward, disclose or otherwise
> use it or any part of it in any form whatsoever. This email may be produced
> at the request of regulators or in connection with civil litigation.
> Jefferies accepts no liability for any errors or omissions arising as a
> result of transmission. Use by other than intended recipients is prohibited.
>
> [[alternative HTML version deleted]]
>
> __
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> https://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide https://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Installing R and RStudio - Contact Software Manufacturer Error URGENT

2025-01-15 Thread Steven Ellis
Hi Eliana,

What model Mac are you using? Are you the owner?

Thanks,
Steven

On Wed, Jan 15, 2025, 1:45 PM Eliana Madison  wrote:

> Good morning, I am currently trying to download R and RStudio to my MacOS
> 13.3 as it is a requirement for a statistics class I am taking this
> semester.
>
> I have checked and I have plenty of storage available however after the
> downloading process is complete and I go to install the program this error
> pops up: The installation failed. The Installer encountered an error that
> caused the installation to fail. Contact the software manufacturer for
> assistance.
>
> Please provide guidance on how to remedy this issue so I can complete the
> installation process and get started on my coursework.
>
> I look forward to hearing from you as soon as possible!
>
> Thank you,
>
> --
>
> Eliana Madison
> ASISU Secretary | Social Work Student
> Pronouns: She, Her, Hers
>
> elianamadi...@isu.edu
> Idaho State University[image: Idaho State University]
>
> Idaho State University (Pocatello) acknowledges that it is located within
> the boundaries of the original Fort Hall Reservation on the traditional
> lands of the Shoshone and Bannock peoples.Idaho State Universit
>
> [[alternative HTML version deleted]]
>
> __
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> https://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide https://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Overnight Cluster (Whitepaper)?

2025-04-30 Thread Steven Ellis
Very interesting problem! Have you posted on Hacker News? This is the only
such system I have used --
https://research.google/pubs/large-scale-cluster-management-at-google-with-borg/

On Wed, Apr 30, 2025 at 4:48 AM ivo welch  wrote:

> We have about 50 different mac computers, all ARM, distributed across our
> offices.  They range from a few M1's with 8 GB all the way to M4's with 64
> GB.  (The M4 mini for $600 is an amazing compute engine!)
>
> These computers are mostly idle overnight.  We have no interest in
> bitmining and SETI@home doesn't seem so very active any more, either.
> Alas, it's 2025 now, so maybe there is something better we could do with
> all this idle compute power when it comes to our own statistical analyses.
> Maybe we could cluster them overnight.
>
> I likely could convince my colleagues to run a cron job (or systemctl, well
> loadctl) that starts listening at 7pm and ends it around 7am, sharing say
> 80% of their memory and CPU, plus say 32GB of SSD.  I won't be able to
> actively administer their computers, so the client has to be easy for them
> to install, turn on, and turn off, accept programs and inputs, cache some
> of the data, and send back output.  (The sharing would only be on the local
> network, not the entire internet, making them feel more comfortable with
> it.)
>
> Ideally, we would then have a frontend R (controller) that could run
> `mclapply` statements on this Franken-computer, and be smart enough about
> how to distribute the load.  For example, an M4 is about 1.5x as fast as an
> M1 on a single CPU, and it's easy to count up CPUs.  If my job is estimated
> to need 4GB per core, presumably I wouldn't want to start 50 processes on a
> computer that has 10 cores and 8GB.  If the frontend estimates that the
> upload and download will take longer than the savings, it should just
> forget about distributing it.  And so on.  Reasonable rules, perhaps
> indicated by the user and/or assessable from a few local mclapply runs
> first.  It's almost like profiling the job for a few minutes or few
> iterations locally, and then deciding whether to send off parts of it to
> all the other computer nodes on this Franken-net.
>
> I am not holding my breath on ChatGPT and artificial intelligence, of
> course.  However, this seems like a hard but feasible engineering problem.
> Is there a vendor who sells a plug-and-play solution to this problem?  I am
> guessing we are not unusual in a setup like this, though an upper price
> bound on the software here is of course just the cost of buying a giant
> homogeneous computer or using Amazon resources.
>
> Pointers appreciated.
>
> /iaw
>
> [[alternative HTML version deleted]]
>
> __
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> https://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide https://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Compressing a sequence

2025-02-21 Thread Steven Ellis
Hi Dennis,

A quick Claude request:

"using r I have a sequence like:1, 3, 4, 5, 7, 8, 12, 13, 14, 15,
20I would like to display it as:1, 3-5, 7-8, 12-15, 20"

yielded:

condense_sequence <- function(nums) {
  if (length(nums) == 0) return("")
  if (length(nums) == 1) return(as.character(nums))

  # Sort the numbers just in case they're not in order
  nums <- sort(unique(nums))

  # Initialize variables
  ranges <- vector("character")
  start <- nums[1]
  prev <- nums[1]

  for (i in 2:length(nums)) {
if (nums[i] != prev + 1) {
  # End of a sequence
  if (start == prev) {
ranges <- c(ranges, as.character(start))
  } else {
ranges <- c(ranges, paste(start, prev, sep="-"))
  }
  start <- nums[i]
}
prev <- nums[i]
  }

  # Handle the last number or range
  if (start == prev) {
ranges <- c(ranges, as.character(start))
  } else {
ranges <- c(ranges, paste(start, prev, sep="-"))
  }

  # Join all ranges with commas
  paste(ranges, collapse=", ")
}

# Your sequence
nums <- c(1, 3, 4, 5, 7, 8, 12, 13, 14, 15, 20)

# Apply the function
result <- condense_sequence(nums)
print(result)
# Output: "1, 3-5, 7-8, 12-15, 20"

Which appears to work well, though you may have other thoughts in mind /
edge cases this code does not cover.

Best,
Steven

On Fri, Feb 21, 2025 at 7:47 PM Dennis Fisher  wrote:

> R 4.4.0
> OS X
>
> Colleagues
>
> I have a sequence like:
> 1, 3, 4, 5, 7, 8, 12, 13, 14, 15, 20
>
> I would like to display it as:
> 1, 3-5, 7-8, 12-15, 20
>
> Any simple ways to accomplish this?
>
> Dennis
>
>
> Dennis Fisher MD
> P < (The "P Less Than" Company)
> Phone / Fax: 1-866-PLessThan (1-866-753-7784)
> www.PLessThan.com
>
>
> [[alternative HTML version deleted]]
>
> __
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> https://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide https://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.